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:
Lukáš Hejl 2021-06-25 18:13:03 +02:00
parent e6295bbfe8
commit 23b26cb3f3
4 changed files with 10 additions and 1 deletions

View File

@ -21,6 +21,7 @@ void GLGizmoFdmSupports::on_shutdown()
{ {
m_angle_threshold_deg = 0.f; m_angle_threshold_deg = 0.f;
m_parent.use_slope(false); m_parent.use_slope(false);
m_parent.toggle_model_objects_visibility(true);
} }

View File

@ -19,6 +19,7 @@ namespace Slic3r::GUI {
void GLGizmoMmuSegmentation::on_shutdown() void GLGizmoMmuSegmentation::on_shutdown()
{ {
m_parent.use_slope(false); m_parent.use_slope(false);
m_parent.toggle_model_objects_visibility(true);
} }
std::string GLGizmoMmuSegmentation::on_get_name() const std::string GLGizmoMmuSegmentation::on_get_name() const

View File

@ -16,6 +16,13 @@ namespace Slic3r::GUI {
void GLGizmoSeam::on_shutdown()
{
m_parent.toggle_model_objects_visibility(true);
}
bool GLGizmoSeam::on_init() bool GLGizmoSeam::on_init()
{ {
m_shortcut_key = WXK_CONTROL_P; m_shortcut_key = WXK_CONTROL_P;

View File

@ -27,7 +27,7 @@ private:
void update_from_model_object() override; void update_from_model_object() override;
void on_opening() 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 // 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. // etc. When language changes, GUI is recreated and this class constructed again, so the change takes effect.