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:
authorbubnikv <bubnikv@gmail.com>2018-05-03 19:34:43 +0300
committerbubnikv <bubnikv@gmail.com>2018-05-03 19:34:43 +0300
commita688a1931e066f4bb0fe56cdd785548d0a8940fa (patch)
tree55ad5cddda632646e0ef5b4cee809bfa4ee5fb91
parentb9d80a364c1e4809fdf2a5f285d0b76a7ec32181 (diff)
Fixed a crash on some multi-material objects due to the reworked
cooling logic.
-rw-r--r--xs/src/libslic3r/GCode/CoolingBuffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xs/src/libslic3r/GCode/CoolingBuffer.cpp b/xs/src/libslic3r/GCode/CoolingBuffer.cpp
index 683f2030d..552695204 100644
--- a/xs/src/libslic3r/GCode/CoolingBuffer.cpp
+++ b/xs/src/libslic3r/GCode/CoolingBuffer.cpp
@@ -536,7 +536,7 @@ float CoolingBuffer::calculate_layer_slowdown(std::vector<PerExtruderAdjustments
adj.time_total = adj.elapsed_time_total();
// Maximum time for this extruder, when all extrusion moves are slowed down to min_extrusion_speed.
adj.time_maximum = adj.maximum_time_after_slowdown(true);
- if (adj.cooling_slow_down_enabled) {
+ if (adj.cooling_slow_down_enabled && adj.lines.size() > 0) {
by_slowdown_time.emplace_back(&adj);
if (! m_cooling_logic_proportional)
// sorts the lines, also sets adj.time_non_adjustable