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:
Hakan SevenandClaude Opus 5.5 committed 2026-09-28 19:35:19 +03:00
1 parent 4c1ddec646
commit 97a5bc1d39
3 files changed
+25

No files matched your search

+5
View File
@@ -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![];