Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsupermerill <merill@free.fr>2022-08-31 04:10:28 +0300
committersupermerill <merill@free.fr>2022-09-16 17:13:08 +0300
commit7a9ee2fe2b49c0cd59dd6435fdefd84a8077df72 (patch)
tree70ebe1fed95f6b296a84071a2bba5d19f34f21e5
parentbaf8aeb1999ebc98f2d8b20a79acbaa7ed56c748 (diff)
Fix autospeed: max print speed %
supermerill/SuperSlicer#3110
-rw-r--r--src/libslic3r/GCode.cpp3
-rw-r--r--src/libslic3r/PrintConfig.cpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/libslic3r/GCode.cpp b/src/libslic3r/GCode.cpp
index a06b8991b..247d1e3b7 100644
--- a/src/libslic3r/GCode.cpp
+++ b/src/libslic3r/GCode.cpp
@@ -1056,7 +1056,8 @@ namespace DoExport {
// volumetric speed as the volumetric speed produced by printing the
// smallest cross-section at the maximum speed: any larger cross-section
// will need slower feedrates.
- volumetric_speed = *std::min_element(mm3_per_mm.begin(), mm3_per_mm.end()) * print.config().max_print_speed.value;
+ double max_print_speed = print.config().get_computed_value("max_print_speed");
+ volumetric_speed = *std::min_element(mm3_per_mm.begin(), mm3_per_mm.end()) * max_print_speed;
// limit such volumetric speed with max_volumetric_speed if set
if (print.config().max_volumetric_speed.value > 0)
volumetric_speed = std::min(volumetric_speed, print.config().max_volumetric_speed.value);
diff --git a/src/libslic3r/PrintConfig.cpp b/src/libslic3r/PrintConfig.cpp
index dd2be2f8e..33f57d4ec 100644
--- a/src/libslic3r/PrintConfig.cpp
+++ b/src/libslic3r/PrintConfig.cpp
@@ -3414,7 +3414,7 @@ void PrintConfigDef::init_fff_params()
"to set the highest print speed you want to allow."
"\nThis can be expressed as a percentage (for example: 100%) over the machine Max Feedrate for X axis.");
def->sidetext = L("mm/s or %");
- def->ratio_over = "machine_max_acceleration_x";
+ def->ratio_over = "machine_max_feedrate_x";
def->min = 1;
def->mode = comExpert | comPrusa;
def->set_default_value(new ConfigOptionFloatOrPercent(80, false));