FDM supports gizmo: do not disable slope visualizer when it should stay on
This commit is contained in:
parent
3cb967327e
commit
ee639a4710
1 changed files with 5 additions and 2 deletions
|
@ -756,8 +756,11 @@ void GLGizmoFdmSupports::on_set_state()
|
|||
}
|
||||
if (m_state == Off && m_old_state != Off) { // the gizmo was just turned Off
|
||||
// we are actually shutting down
|
||||
m_setting_angle = false;
|
||||
m_parent.use_slope(false);
|
||||
if (m_setting_angle) {
|
||||
m_setting_angle = false;
|
||||
m_parent.use_slope(false);
|
||||
}
|
||||
|
||||
wxGetApp().plater()->leave_gizmos_stack();
|
||||
{
|
||||
Plater::TakeSnapshot snapshot(wxGetApp().plater(), _(L("FDM gizmo turned off")));
|
||||
|
|
Loading…
Reference in a new issue