Allocate distinct handles for polyline break fragments

This commit is contained in:
ramox81 committed 2026-09-11 12:17:59 +03:00
1 parent dd9ef2f236
commit 5500272f31
1 file changed
+4 -1
+4 -1
View File
@@ -3255,7 +3255,10 @@ impl OpenCADStudio {
self.push_undo_snapshot(i, "PEDIT");
let source = pieces.remove(0);
self.tabs[i].scene.update_entity(source);
for piece in pieces { self.tabs[i].scene.add_entity(piece); }
for mut piece in pieces {
piece.common_mut().handle = Handle::NULL;
self.tabs[i].scene.add_entity(piece);
}
let updated = self.tabs[i].scene.document.get_entity(handle).cloned();
if let Some(command) = self.tabs[i].active_cmd.as_mut() {
if let Some(entity) = updated { command.inject_picked_entity(entity); }