Skip to content

Commit b0ef58f

Browse files
adamgerhantKeavon
authored andcommitted
Add transform on vector data. TODO: Remove duplicate transform
1 parent 3abbad0 commit b0ef58f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

node-graph/gcore/src/graphic_element/renderer.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,7 @@ impl GraphicElementRendered for GraphicGroupTable {
359359
click_target.apply_transform(*instance.transform)
360360
}
361361

362+
log::debug!("new_click_targets for {graphic_group_id:?}: {new_click_targets:?}");
362363
all_upstream_click_targets.extend(new_click_targets);
363364
}
364365

@@ -525,8 +526,11 @@ impl GraphicElementRendered for VectorDataTable {
525526
}
526527
subpath
527528
};
528-
529-
click_targets.extend(instance.instance.stroke_bezier_paths().map(fill).map(|subpath| ClickTarget::new(subpath, stroke_width)));
529+
click_targets.extend(instance.instance.stroke_bezier_paths().map(fill).map(|subpath| {
530+
let mut click_target = ClickTarget::new(subpath, stroke_width);
531+
click_target.apply_transform(*instance.transform);
532+
click_target
533+
}));
530534
}
531535
}
532536

0 commit comments

Comments
 (0)