fix(hatch): refresh associative hatch during geometry edits

This commit is contained in:
gianlucafiore committed 2026-09-07 18:18:36 -03:00
1 parent 67163de15d
commit b7c2ce2e13
2 files changed
+93 -10

No files matched your search

+9
View File
@@ -1387,5 +1387,14 @@ impl Scene {
self.images.insert(handle, model);
}
}
// A grip edit can move geometry used as the boundary of an associative hatch.
// The source entity has already been mutated above, so rebuild any dependent
// hatch from the live document geometry immediately.
let source_change = [(handle, ChangeKind::Modified)];
let hatch_changes = self.refresh_associative_hatches(&source_change);
if !hatch_changes.is_empty() {
self.bump_entities(&hatch_changes);
}
}
}