FIX: fix the .gcode.3mf can not loading issue

when use tool_change, the color change logic is wrongly forbidden when loading only gcode

Change-Id: I2a26fbb8f41f0769eaf01d08d8904efc922a6c3d
This commit is contained in:
lane.wei 2023-07-07 10:44:18 +08:00 committed by Lane.Wei
parent 858e6123ee
commit 18be0e3770
1 changed files with 5 additions and 2 deletions

View File

@ -243,8 +243,11 @@ void IMSlider::SetTicksValues(const Info &custom_gcode_per_print_z)
;// post_ticks_changed_event();
if (m_ticks.has_tick_with_code(ToolChange) && !m_can_change_color) {
m_ticks.erase_all_ticks_with_code(ToolChange);
post_ticks_changed_event();
if (!wxGetApp().plater()->only_gcode_mode() && !wxGetApp().plater()->using_exported_file())
{
m_ticks.erase_all_ticks_with_code(ToolChange);
post_ticks_changed_event();
}
}
if (last_spiral_vase_status != m_is_spiral_vase) {