From f9d9d40c4fd72ddf4c6aaa9b3d45851bf1fe7ffc Mon Sep 17 00:00:00 2001 From: Mack Date: Thu, 14 Nov 2024 22:26:34 +0800 Subject: [PATCH] FIX:If the angle and linear deflections get incorrect values, reset them to the default values jira: nojira Change-Id: Ia2c64a2a0ebe30641192fdb716234f34c356a6c6 --- src/slic3r/GUI/Plater.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 036b6d50b..a9bfb01fa 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -4024,7 +4024,9 @@ std::vector Plater::priv::load_files(const std::vector& input_ if (boost::iends_with(path.string(), ".stp") || boost::iends_with(path.string(), ".step")) { double linear = string_to_double_decimal_point(wxGetApp().app_config->get("linear_defletion")); + if (linear <= 0) linear = 0.003; double angle = string_to_double_decimal_point(wxGetApp().app_config->get("angle_defletion")); + if (angle <= 0) angle = 0.5; model = Slic3r::Model:: read_from_step(path.string(), strategy, [this, &dlg, real_filename, &progress_percent, &file_percent, step_percent, INPUT_FILES_RATIO, total_files, i](int load_stage, int current, int total, bool &cancel) {