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:
authorYuSanka <yusanka@gmail.com>2019-10-29 17:34:35 +0300
committerYuSanka <yusanka@gmail.com>2019-10-29 17:34:35 +0300
commit8ebd9ce7c4c786e7d6b12c8f86e45a9099e1b54b (patch)
treec74b9f87897c8f9cbee16c648525a025ee482036 /src/slic3r/GUI/wxExtensions.hpp
parent398d20c79be368eba12b44d196e5a6b0f001a45d (diff)
Save "color_change" for a selected extruder to G_code
Diffstat (limited to 'src/slic3r/GUI/wxExtensions.hpp')
-rw-r--r--src/slic3r/GUI/wxExtensions.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/slic3r/GUI/wxExtensions.hpp b/src/slic3r/GUI/wxExtensions.hpp
index 0fedaee09..a4ac16d4d 100644
--- a/src/slic3r/GUI/wxExtensions.hpp
+++ b/src/slic3r/GUI/wxExtensions.hpp
@@ -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;