Save "color_change" for a selected extruder to G_code

This commit is contained in:
YuSanka 2019-10-29 15:34:35 +01:00
parent 398d20c79b
commit 8ebd9ce7c4
5 changed files with 33 additions and 14 deletions

View file

@ -828,6 +828,11 @@ public:
m_state = state;
}
ManipulationState GetManipulationState() const { return m_state; }
void SetExtruderID(int extruder) {
m_current_extruder = extruder;
m_state = extruder < 0 ? msSingleExtruder :
extruder > 0 ? msMultiExtruder : msMultiExtruderWholePrint;
}
bool is_horizontal() const { return m_style == wxSL_HORIZONTAL; }
bool is_one_layer() const { return m_is_one_layer; }
@ -919,6 +924,7 @@ private:
bool m_show_context_menu = false;
ManipulationState m_state = msSingleExtruder;
wxString m_custom_gcode = wxEmptyString;
int m_current_extruder = -1;
wxRect m_rect_lower_thumb;
wxRect m_rect_higher_thumb;