forked from 1b-agent/opencadstudio-upstream
fix(pasteblock): place the block at the picked point
The pasted block is defined around the clipboard base, so its origin is already that point, but the insertion still subtracted the base and landed the block offset from the pick. The base now only positions the world-space preview, and it stays f64. Fixes #1731 Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
9e31af3ff2
commit
925c91ccfa
2 files changed
+12
-6
No files matched your search
@@ -371,7 +371,7 @@ impl OpenCADStudio {
|
||||
let wires = self.tabs[i].scene.wires_for_entities(&self.clipboard);
|
||||
use crate::modules::insert::insert_block::InsertBlockCommand;
|
||||
let cmd =
|
||||
InsertBlockCommand::new_for_block(name, wires, base.as_vec3());
|
||||
InsertBlockCommand::new_for_block(name, wires, base);
|
||||
self.command_line.push_info(&cmd.prompt());
|
||||
self.tabs[i].active_cmd = Some(Box::new(cmd));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user