forked from 1b-agent/opencadstudio-upstream
fix(offset): the offset just created can be hovered and offset again
A running command only knew the entities that existed when it started; committed results are now handed back to it, and OFFSET adds them to its pick set. Fixes #673 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4c1ddec646
commit
97a5bc1d39
3 files changed
+25
No files matched your search
@@ -2688,6 +2688,12 @@ pub trait CadCommand: Send {
|
||||
/// Commands that stay active across replaces should update their internal snapshots here.
|
||||
fn on_entity_replaced(&mut self, _old: Handle, _new_handles: &[Handle]) {}
|
||||
|
||||
/// Called after `CmdResult::CommitEntity` / `CommitEntities` added
|
||||
/// entities while the command stays active, with the entities as stored
|
||||
/// (fresh handles). Commands that pick from a snapshot add them here so
|
||||
/// their own results can be hovered and picked next. (#673)
|
||||
fn on_entities_committed(&mut self, _entities: &[codec::EntityType]) {}
|
||||
|
||||
/// Called after a PEDIT operation changed its target.
|
||||
fn on_pedit_applied(&mut self) {}
|
||||
|
||||
|
||||
Reference in new issue
Block a user