Fixed the issue where the object wasn't displayed after pressing the ESC key in the multi-material painting gizmo.
key in the multi-material painting gizmo. Fixed also a similar issue in support and seam gizmos where an object was displayed with the wrong color after pressing the ESC key.
This commit is contained in:
parent
e6295bbfe8
commit
23b26cb3f3
@ -21,6 +21,7 @@ void GLGizmoFdmSupports::on_shutdown()
|
||||
{
|
||||
m_angle_threshold_deg = 0.f;
|
||||
m_parent.use_slope(false);
|
||||
m_parent.toggle_model_objects_visibility(true);
|
||||
}
|
||||
|
||||
|
||||
|
@ -19,6 +19,7 @@ namespace Slic3r::GUI {
|
||||
void GLGizmoMmuSegmentation::on_shutdown()
|
||||
{
|
||||
m_parent.use_slope(false);
|
||||
m_parent.toggle_model_objects_visibility(true);
|
||||
}
|
||||
|
||||
std::string GLGizmoMmuSegmentation::on_get_name() const
|
||||
|
@ -16,6 +16,13 @@ namespace Slic3r::GUI {
|
||||
|
||||
|
||||
|
||||
void GLGizmoSeam::on_shutdown()
|
||||
{
|
||||
m_parent.toggle_model_objects_visibility(true);
|
||||
}
|
||||
|
||||
|
||||
|
||||
bool GLGizmoSeam::on_init()
|
||||
{
|
||||
m_shortcut_key = WXK_CONTROL_P;
|
||||
|
@ -27,7 +27,7 @@ private:
|
||||
void update_from_model_object() override;
|
||||
|
||||
void on_opening() override {}
|
||||
void on_shutdown() override {}
|
||||
void on_shutdown() override;
|
||||
|
||||
// This map holds all translated description texts, so they can be easily referenced during layout calculations
|
||||
// etc. When language changes, GUI is recreated and this class constructed again, so the change takes effect.
|
||||
|
Loading…
Reference in New Issue
Block a user