mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00:00
Fixed a crash when arrange plate (#5109)
This commit is contained in:
@@ -5698,9 +5698,6 @@ void ObjectList::on_plate_deleted(int plate_idx)
|
|||||||
void ObjectList::reload_all_plates(bool notify_partplate)
|
void ObjectList::reload_all_plates(bool notify_partplate)
|
||||||
{
|
{
|
||||||
m_prevent_canvas_selection_update = true;
|
m_prevent_canvas_selection_update = true;
|
||||||
#ifdef __WXOSX__
|
|
||||||
AssociateModel(nullptr);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Unselect all objects before deleting them, so that no change of selection is emitted during deletion.
|
// Unselect all objects before deleting them, so that no change of selection is emitted during deletion.
|
||||||
|
|
||||||
@@ -5730,9 +5727,6 @@ void ObjectList::reload_all_plates(bool notify_partplate)
|
|||||||
|
|
||||||
update_selections();
|
update_selections();
|
||||||
|
|
||||||
#ifdef __WXOSX__
|
|
||||||
AssociateModel(m_objects_model);
|
|
||||||
#endif
|
|
||||||
m_prevent_canvas_selection_update = false;
|
m_prevent_canvas_selection_update = false;
|
||||||
|
|
||||||
// update scene
|
// update scene
|
||||||
|
|||||||
Reference in New Issue
Block a user