mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 10:17:55 -06:00
SLA gizmo uses CallAfter to trigger SLA supports calculation to prevent recursive rendering calls
This commit is contained in:
parent
9594bf43b5
commit
e20ffbfd85
1 changed files with 2 additions and 2 deletions
|
@ -816,7 +816,7 @@ void GLGizmoSlaSupports::editing_mode_apply_changes()
|
||||||
// Recalculate support structures once the editing mode is left.
|
// Recalculate support structures once the editing mode is left.
|
||||||
// m_parent.post_event(SimpleEvent(EVT_GLCANVAS_SCHEDULE_BACKGROUND_PROCESS));
|
// m_parent.post_event(SimpleEvent(EVT_GLCANVAS_SCHEDULE_BACKGROUND_PROCESS));
|
||||||
// m_parent.post_event(SimpleEvent(EVT_GLCANVAS_SCHEDULE_BACKGROUND_PROCESS));
|
// m_parent.post_event(SimpleEvent(EVT_GLCANVAS_SCHEDULE_BACKGROUND_PROCESS));
|
||||||
wxGetApp().plater()->reslice_SLA_supports(*m_model_object);
|
wxGetApp().CallAfter([this]() { wxGetApp().plater()->reslice_SLA_supports(*m_model_object); });
|
||||||
}
|
}
|
||||||
m_editing_mode = false;
|
m_editing_mode = false;
|
||||||
m_unsaved_changes = false;
|
m_unsaved_changes = false;
|
||||||
|
@ -869,7 +869,7 @@ void GLGizmoSlaSupports::auto_generate()
|
||||||
m_model_object->sla_support_points.clear();
|
m_model_object->sla_support_points.clear();
|
||||||
m_model_object->sla_points_status = sla::PointsStatus::Generating;
|
m_model_object->sla_points_status = sla::PointsStatus::Generating;
|
||||||
m_editing_mode_cache.clear();
|
m_editing_mode_cache.clear();
|
||||||
wxGetApp().plater()->reslice_SLA_supports(*m_model_object);
|
wxGetApp().CallAfter([this]() { wxGetApp().plater()->reslice_SLA_supports(*m_model_object); });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue