mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-11-09 03:12:26 +00:00
SLA gizmo fix: occasional crashes after deleting objects
This commit is contained in:
1 parent
49fe8a9f08
commit
32ed064797
1 file changed
+4
-1
@@ -44,8 +44,11 @@ bool GLGizmoSlaSupports::on_init()
|
|||||||
|
|
||||||
void GLGizmoSlaSupports::set_sla_support_data(ModelObject* model_object, const Selection& selection)
|
void GLGizmoSlaSupports::set_sla_support_data(ModelObject* model_object, const Selection& selection)
|
||||||
{
|
{
|
||||||
if (selection.is_empty())
|
if (selection.is_empty()) {
|
||||||
|
m_model_object = nullptr;
|
||||||
|
m_old_model_object = nullptr;
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
m_old_model_object = m_model_object;
|
m_old_model_object = m_model_object;
|
||||||
m_model_object = model_object;
|
m_model_object = model_object;
|
||||||
|
|||||||
Reference in new issue
Block a user