Fixed a crash on some multi-material objects due to the reworked

cooling logic.
This commit is contained in:
bubnikv 2018-05-03 18:34:43 +02:00
parent b9d80a364c
commit a688a1931e

View File

@ -536,7 +536,7 @@ float CoolingBuffer::calculate_layer_slowdown(std::vector<PerExtruderAdjustments
adj.time_total = adj.elapsed_time_total(); adj.time_total = adj.elapsed_time_total();
// Maximum time for this extruder, when all extrusion moves are slowed down to min_extrusion_speed. // 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); 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); by_slowdown_time.emplace_back(&adj);
if (! m_cooling_logic_proportional) if (! m_cooling_logic_proportional)
// sorts the lines, also sets adj.time_non_adjustable // sorts the lines, also sets adj.time_non_adjustable