SLA gizmo: fixed a crash with multiple selection

This commit is contained in:
Lukas Matena 2019-07-31 10:18:49 +02:00
parent 8d3d4b3ae7
commit 99f34f8321

View file

@ -59,7 +59,7 @@ bool GLGizmoSlaSupports::on_init()
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;
return;
}