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
@@ -818,6 +818,11 @@ impl CadCommand for OffsetCommand {
|
||||
}
|
||||
}
|
||||
|
||||
fn on_entities_committed(&mut self, entities: &[EntityType]) {
|
||||
self.all_entities.extend(entities.iter().cloned());
|
||||
self.entity_index = ModifyEntityIndex::build(&self.all_entities);
|
||||
}
|
||||
|
||||
fn on_hover_entity(&mut self, handle: Handle, _pt: DVec3) -> Vec<WireModel> {
|
||||
if handle.is_null() || !matches!(self.step, Step::SelectObject { .. }) {
|
||||
return vec![];
|
||||
|
||||
Reference in new issue
Block a user