From 94e1fb9b3fda92da1a76a3396c533be16c6746bc Mon Sep 17 00:00:00 2001 From: alves Date: Sat, 28 Feb 2026 11:41:09 +0800 Subject: [PATCH] fix color invalid bug. --- src/slic3r/GUI/SSWCP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/SSWCP.cpp b/src/slic3r/GUI/SSWCP.cpp index eaa9d4c802..1dbdff0177 100644 --- a/src/slic3r/GUI/SSWCP.cpp +++ b/src/slic3r/GUI/SSWCP.cpp @@ -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