Fix of a rare crash on opening an SLA gizmo (supports or hollow)

This commit is contained in:
Lukas Matena 2020-03-13 15:58:40 +01:00
parent 2e6a5e7783
commit e547a0c3d1

View file

@ -225,7 +225,7 @@ void GLGizmosManager::update_data()
set_scale(Vec3d::Ones());
set_rotation(Vec3d::Zero());
set_flattening_data(selection.is_from_single_object() ? selection.get_model()->objects[selection.get_object_idx()] : nullptr);
set_sla_support_data(nullptr);
set_sla_support_data(selection.is_from_single_instance() ? selection.get_model()->objects[selection.get_object_idx()] : nullptr);
}
}