From 9e6250d0d9bac9d73179d5facc83f31c5018a4f3 Mon Sep 17 00:00:00 2001 From: Dennis Kobert Date: Tue, 8 Sep 2026 19:35:27 +0000 Subject: [PATCH] Accept any paint element on the graphic fill and stroke rows --- node-graph/nodes/vector/src/vector_nodes.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/node-graph/nodes/vector/src/vector_nodes.rs b/node-graph/nodes/vector/src/vector_nodes.rs index 7e1fcb3f76..7c19ede934 100644 --- a/node-graph/nodes/vector/src/vector_nodes.rs +++ b/node-graph/nodes/vector/src/vector_nodes.rs @@ -417,10 +417,12 @@ fn fill<'e, P: Clone + Send + Sync + dyn_any::StaticTypeSized + core_types::ops: /// boundary moves it onto the interior vector lists the legacy paint readers /// inspect. Registered under the fill's identifier. #[node_macro::node(category(""))] -fn fill_graphic_leveled<'e>( +fn fill_graphic_leveled<'e, P: Clone + Send + Sync + dyn_any::StaticTypeSized + core_types::ops::ListConvert>>( ctx: impl Ctx + ExtractArena<'e> + ExtractIndex + InjectIndex + Copy, (element, _content_fill): (Graphic<'static>, Attr), - #[default(Color::BLACK)] paint: IList>, + #[default(Color::BLACK)] + #[implementations(Graphic<'static>, Color, Gradient)] + paint: IList

, _backup_color: IList, _backup_gradient: IList, _gradient_form: GradientForm, @@ -491,10 +493,12 @@ fn stroke<'e, P: Clone + Send + Sync + dyn_any::StaticTypeSized + core_types::op /// the paint marker parks on the lane for the render boundary to place. /// Registered under the stroke's identifier. #[node_macro::node(category(""))] -fn stroke_graphic_leveled<'e>( +fn stroke_graphic_leveled<'e, P: Clone + Send + Sync + dyn_any::StaticTypeSized + core_types::ops::ListConvert>>( ctx: impl Ctx + ExtractArena<'e> + ExtractIndex + InjectIndex + Copy, (element, content_transform): (Graphic<'static>, Attr), - #[default(Color::BLACK)] paint: IList>, + #[default(Color::BLACK)] + #[implementations(Graphic<'static>, Color, Gradient)] + paint: IList

, #[unit(" px")] #[default(2.)] weight: f64,