feat(annotation): integrate object contexts

This commit is contained in:
Hakan Seven committed 2026-08-02 12:00:15 +03:00
1 parent f39481ac49
commit e03e091b3c
37 files changed
+2823 -584

No files matched your search

+13 -2
View File
@@ -430,7 +430,12 @@ impl Scene {
let frozen: rustc_hash::FxHashSet<Handle> =
viewport.frozen_layers.iter().copied().collect();
let hatches = self.plot_hatches_for_block(model_block, Some(&frozen));
let hatches = self.plot_hatches_for_block(
model_block,
Some(&frozen),
self.viewport_scale_handle(viewport.common.handle),
self.annotation_all_visible(),
);
for hatch in hatches {
if matches!(&hatch.pattern, HatchPattern::Pattern(_)) {
let mut points = Vec::new();
@@ -482,7 +487,13 @@ impl Scene {
}
}
for wipeout in self.plot_wipeouts_for_block(model_block, Some(&frozen)) {
for wipeout in self.plot_wipeouts_for_block(
model_block,
Some(&frozen),
self.viewport_scale_handle(viewport.common.handle),
self.annotation_all_visible(),
false,
) {
if let Some(wipeout) =
project_plot_fill(wipeout, &project, xmin, ymin, xmax, ymax)
{