mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-15 01:01:49 +08:00
Revert "Revert "Fixed crash when changing printer while Hollow gizmo is open""
This reverts commit 73eba8c930310a89870f6a061076a579d9251358. This is a revert of a revert - the original commit a3324d3 is probably fine after all.
This commit is contained in:
parent
cd0ed00ef5
commit
7f5e2dd57a
@ -2004,7 +2004,12 @@ void GLCanvas3D::reload_scene(bool refresh_immediately, bool force_full_scene_re
|
||||
else
|
||||
m_selection.volumes_changed(map_glvolume_old_to_new);
|
||||
|
||||
m_gizmos.update_data();
|
||||
// The current gizmo may be not supported by the current printer technology
|
||||
// after the user changes printer.
|
||||
// Check if it is still activable before to call update_data() method.
|
||||
const GLGizmoBase* gizmo = m_gizmos.get_current();
|
||||
if (gizmo != nullptr && gizmo->is_activable())
|
||||
m_gizmos.update_data();
|
||||
m_gizmos.refresh_on_off_state();
|
||||
|
||||
// Update the toolbar
|
||||
|
Loading…
x
Reference in New Issue
Block a user