Fix plates keeping stale objects after a cut (#16881)

The cut and "Delete all connectors" removed objects without telling the plates, so the plates kept counting objects by their old index. Prime tower previews showed another plate's filaments, and Select All picked up objects from other plates.

Removing a whole object now also removes every instance of it from the plates, not just the first one.
This commit is contained in:
TheLegendTubaGuy authored and GitHub committed 2026-10-26 07:46:30 -05:00
1 parent 13a40b47a2
commit aa069d90fb
3 files changed
+15

No files matched your search

+1
View File
@@ -3653,6 +3653,7 @@ void ObjectList::delete_all_connectors_for_object(int obj_idx)
if (obj->volumes.empty() || !obj->has_solid_mesh()) {
const std::string deleted_obj_name = obj->name;
model.delete_object(idx);
wxGetApp().plater()->get_partplate_list().notify_instance_removed(idx, -1);
{
Slic3r::LifecycleEventContext ctx;
ctx.name = deleted_obj_name;