FDM supports gizmo fix: make sure that slope visualizer is off when turning off the gizmo

This commit is contained in:
Lukas Matena 2020-05-11 16:59:43 +02:00
parent 4ed1b49955
commit 6391200390

View file

@ -759,6 +759,7 @@ 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);
wxGetApp().plater()->leave_gizmos_stack();
{
Plater::TakeSnapshot snapshot(wxGetApp().plater(), _(L("FDM gizmo turned off")));