mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-11-11 03:32:24 +00:00
SLA gizmo: fixed a crash with multiple selection
This commit is contained in:
1 parent
8d3d4b3ae7
commit
99f34f8321
1 file changed
+1
-1
@@ -59,7 +59,7 @@ 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 (! model_object || selection.is_empty()) {
|
||||||
m_model_object = nullptr;
|
m_model_object = nullptr;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user