forked from 1b-agent/opencadstudio-upstream
fix(hatch): refresh associative hatch during geometry edits
This commit is contained in:
1 parent
67163de15d
commit
b7c2ce2e13
2 files changed
+93
-10
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user