Add source-first joins with retained object identity

This commit is contained in:
ramox81 committed 2026-09-11 10:39:08 +03:00
1 parent 7d0c059b30
commit 9ca2db82bf
4 files changed
+101 -40

No files matched your search

+4 -1
View File
@@ -218,7 +218,10 @@ impl OpenCADStudio {
self.apply_cmd_result(crate::command::CmdResult::JoinEntities(selected));
return Some(task);
}
let cmd = JoinCommand::new();
let mut cmd = JoinCommand::new();
if let Some(handle) = selected.first() {
if let Some(entity) = self.tabs[i].scene.document.get_entity(*handle).cloned() { cmd = cmd.with_source(*handle, entity); }
}
self.command_line.push_info(&cmd.prompt());
self.tabs[i].active_cmd = Some(Box::new(cmd));
}