mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
Added missed update for a config after extruder change from the ObjectList.
Fixed erase "tool_change" ticks from ticks set.
This commit is contained in:
parent
519291394a
commit
74e4a743af
3 changed files with 27 additions and 3 deletions
|
@ -3744,10 +3744,19 @@ void DoubleSlider::edit_extruder_sequence()
|
|||
if (dlg.ShowModal() != wxID_OK)
|
||||
return;
|
||||
|
||||
m_extruders_sequence = dlg.GetValue();
|
||||
const ExtrudersSequence& from_dlg_val = dlg.GetValue();
|
||||
if (m_extruders_sequence == from_dlg_val)
|
||||
return;
|
||||
|
||||
m_ticks_.erase(std::remove_if(m_ticks_.begin(), m_ticks_.end(),
|
||||
[](TICK_CODE tick) { return tick.gcode == Slic3r::ExtruderChangeCode; }), m_ticks_.end());
|
||||
m_extruders_sequence = from_dlg_val;
|
||||
|
||||
auto it = m_ticks_.begin();
|
||||
while (it != m_ticks_.end()) {
|
||||
if (it->gcode == Slic3r::ExtruderChangeCode)
|
||||
it = m_ticks_.erase(it);
|
||||
else
|
||||
++it;
|
||||
}
|
||||
|
||||
int tick = 0;
|
||||
double value = 0.0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue