Fixed crash when changing printer while Hollow gizmo is open
This commit is contained in:
parent
fdecb30664
commit
a3324d3e50
@ -2004,6 +2004,11 @@ void GLCanvas3D::reload_scene(bool refresh_immediately, bool force_full_scene_re
|
|||||||
else
|
else
|
||||||
m_selection.volumes_changed(map_glvolume_old_to_new);
|
m_selection.volumes_changed(map_glvolume_old_to_new);
|
||||||
|
|
||||||
|
// 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.update_data();
|
||||||
m_gizmos.refresh_on_off_state();
|
m_gizmos.refresh_on_off_state();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user