Follow-up of previous commit - check that gizmos are enabled

To be on the safe side, reinstate one part of
the check that the previous code did.
This commit is contained in:
Lukas Matena 2020-03-14 09:42:24 +01:00
parent 99ff6763a1
commit c731f04331

View file

@ -2527,8 +2527,9 @@ std::vector<size_t> Plater::priv::load_files(const std::vector<fs::path>& input_
selection.add_object((unsigned int)idx, false);
}
// this is required because the selected object changed and the flatten on face an sla support gizmos need to be updated accordingly
view3D->get_canvas3d()->update_gizmos_on_off_state();
if (view3D->get_canvas3d()->get_gizmos_manager().is_enabled())
// this is required because the selected object changed and the flatten on face an sla support gizmos need to be updated accordingly
view3D->get_canvas3d()->update_gizmos_on_off_state();
}
return obj_idxs;