SPE-1768: Fixed crash when hitting 'Jump to' in the toolpaths conflict imgui dialog while the Paint supports gizmo is open

This commit is contained in:
enricoturri1966 2023-06-12 13:38:44 +02:00
parent c843349d35
commit 93bd11c533

View File

@ -7515,6 +7515,7 @@ void GLCanvas3D::_set_warning_notification(EWarning warning, bool state)
wxGetApp().CallAfter([obj_idx, layer_id]() {
wxGetApp().plater()->set_preview_layers_slider_values_range(0, layer_id - 1);
wxGetApp().plater()->select_view_3D("3D");
wxGetApp().plater()->canvas3D()->reset_all_gizmos();
wxGetApp().plater()->canvas3D()->get_selection().add_object(obj_idx, true);
wxGetApp().obj_list()->update_selections();
});