From 04a928b2411c6dedf6ba12608eef41478470dff9 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Mon, 5 Oct 2020 09:15:43 +0200 Subject: [PATCH] Follow-up of 8df01818dd85560a76d3a33bcff1f3437cede618 -> GCodeProcessor uses new Machine Limits limitations --- src/libslic3r/GCode/GCodeProcessor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libslic3r/GCode/GCodeProcessor.cpp b/src/libslic3r/GCode/GCodeProcessor.cpp index ac67fdabe..83638ae74 100644 --- a/src/libslic3r/GCode/GCodeProcessor.cpp +++ b/src/libslic3r/GCode/GCodeProcessor.cpp @@ -505,7 +505,9 @@ void GCodeProcessor::apply_config(const PrintConfig& config) m_filament_diameters[i] = static_cast(config.filament_diameter.values[i]); } - m_time_processor.machine_limits = reinterpret_cast(config); + if (config.machine_limits_type.value != MachineLimitsUsage::Ignore) + m_time_processor.machine_limits = reinterpret_cast(config); + // Filament load / unload times are not specific to a firmware flavor. Let anybody use it if they find it useful. // As of now the fields are shown at the UI dialog in the same combo box as the ramming values, so they // are considered to be active for the single extruder multi-material printers only.