From 561f4ebfbdbadf5d46059c6a2de6270523b1df10 Mon Sep 17 00:00:00 2001 From: "songwei.li" Date: Tue, 12 Aug 2025 20:23:43 +0800 Subject: [PATCH] FIX: enable_prime_tower and enable_wrapping_detection warning does not work The translated strings cannot match the correct config, delete the translation of these two opt_key jira: STUDIO-13989, STUDIO-13988 Change-Id: I5e8ebf342b5bb18c1ca6a88a3916197941c0cb03 (cherry picked from commit a84d9ab466b1f6b1ccb727d4f34cdb7c2eb8e30a) --- src/libslic3r/Print.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libslic3r/Print.cpp b/src/libslic3r/Print.cpp index 7c39d81642..62771bb68b 100644 --- a/src/libslic3r/Print.cpp +++ b/src/libslic3r/Print.cpp @@ -1191,7 +1191,7 @@ StringObjectException Print::validate(StringObjectException *warning, Polygons* if (m_config.enable_wrapping_detection) { StringObjectException clumping_detection_setting_err; clumping_detection_setting_err.string = L("Clumping detection is not supported when \"by object\" sequence is enabled."); - clumping_detection_setting_err.opt_key = L("enable_wrapping_detection"); + clumping_detection_setting_err.opt_key = "enable_wrapping_detection"; return clumping_detection_setting_err; } @@ -1216,7 +1216,7 @@ StringObjectException Print::validate(StringObjectException *warning, Polygons* if (m_config.enable_wrapping_detection && warning!=nullptr) { StringObjectException warningtemp; warningtemp.string = L("Prime tower is required for clumping detection; otherwise, there may be flaws on the model."); - warningtemp.opt_key = L("enable_prime_tower"); + warningtemp.opt_key = "enable_prime_tower"; warningtemp.is_warning = true; *warning = warningtemp; }