FDM supports gizmo: do not disable slope visualizer when it should stay on

This commit is contained in:
Lukas Matena 2020-05-14 14:17:20 +02:00
parent 3cb967327e
commit ee639a4710

View file

@ -756,8 +756,11 @@ void GLGizmoFdmSupports::on_set_state()
} }
if (m_state == Off && m_old_state != Off) { // the gizmo was just turned Off if (m_state == Off && m_old_state != Off) { // the gizmo was just turned Off
// we are actually shutting down // we are actually shutting down
if (m_setting_angle) {
m_setting_angle = false; m_setting_angle = false;
m_parent.use_slope(false); m_parent.use_slope(false);
}
wxGetApp().plater()->leave_gizmos_stack(); wxGetApp().plater()->leave_gizmos_stack();
{ {
Plater::TakeSnapshot snapshot(wxGetApp().plater(), _(L("FDM gizmo turned off"))); Plater::TakeSnapshot snapshot(wxGetApp().plater(), _(L("FDM gizmo turned off")));