fix color invalid bug.

This commit is contained in:
alves
2026-02-28 11:41:09 +08:00
parent 5098401480
commit 94e1fb9b3f

View File

@@ -3055,7 +3055,7 @@ void SSWCP_MachineOption_Instance::sw_GetFileFilamentMapping()
long long res = 0;
if ((oriclr.size() != 7 && oriclr.size() != 9) || oriclr[0] != '#') {
return -1;
return 0;
}
auto colorSize = oriclr.size();//7 or 9