From e6cb938ff9d4101cfca3765134d26c4ced5fefd4 Mon Sep 17 00:00:00 2001 From: Dennis Kobert Date: Fri, 30 Oct 2026 15:39:40 +0000 Subject: [PATCH] Load images into CPU rasters by default again --- .../node_graph/document_node_definitions.rs | 5 +- .../messages/portfolio/document_migration.rs | 55 +------------ editor/src/node_graph_executor.rs | 79 +++++++++++++++++++ editor/src/test_utils.rs | 32 ++++++++ node-graph/nodes/blending/src/lib.rs | 6 +- node-graph/nodes/gcore/src/animation.rs | 8 +- .../nodes/gcore/src/context_modification.rs | 4 +- node-graph/nodes/graphic/src/artboard.rs | 2 +- node-graph/nodes/graphic/src/graphic.rs | 38 ++++----- .../nodes/gstd/src/platform_application_io.rs | 17 ++-- node-graph/nodes/gstd/src/render_node.rs | 2 +- node-graph/nodes/math/src/lib.rs | 4 +- node-graph/nodes/raster/src/std_nodes.rs | 15 ++-- node-graph/nodes/repeat/src/repeat_nodes.rs | 8 +- .../nodes/transform/src/transform_nodes.rs | 8 +- node-graph/nodes/vector/src/vector_nodes.rs | 4 +- 16 files changed, 169 insertions(+), 118 deletions(-) diff --git a/editor/src/messages/portfolio/document/node_graph/document_node_definitions.rs b/editor/src/messages/portfolio/document/node_graph/document_node_definitions.rs index 65785db0b9..c09d225aa1 100644 --- a/editor/src/messages/portfolio/document/node_graph/document_node_definitions.rs +++ b/editor/src/messages/portfolio/document/node_graph/document_node_definitions.rs @@ -611,10 +611,7 @@ fn document_node_definitions() -> HashMap, usize, Type, bool)> = document - .network_interface - .document_network() - .recursive_nodes() - .flat_map(|(node_id, node, path)| { - node.inputs - .iter() - .enumerate() - .filter_map(|(index, input)| { - let NodeInput::Value { tagged_value, exposed } = input else { return None }; - let TaggedValue::TypeDefault(stored_type) = &**tagged_value else { return None }; - let gpu_type = if *stored_type == item!(Raster) { - item!(Raster) - } else if *stored_type == list!(Raster) { - list!(Raster) - } else { - return None; - }; - Some((*node_id, path.clone(), index, gpu_type, *exposed)) - }) - .collect::>() - }) - .collect(); - for (node_id, network_path, index, gpu_type, exposed) in cpu_raster_type_defaults { - document - .network_interface - .set_input(&InputConnector::node_at_index(node_id, index), NodeInput::type_default(gpu_type, exposed), &network_path); - } - // Bringing an old document up to date is not a set of edits on it, it is how the document arrives. // The upgrades run through the ordinary mutators, so the store records them; dropping what they // recorded leaves the opened document as the baseline rather than as a pile of changes to itself. @@ -3575,8 +3545,6 @@ fn migrate_node(node_id: &NodeId, node: &DocumentNode, network_path: &[NodeId], graphene_std::raster_nodes::effects::blur::IDENTIFIER, graphene_std::raster_nodes::image_color_palette::image_color_palette::IDENTIFIER, graphene_std::raster_nodes::dehaze::dehaze::IDENTIFIER, - graphene_std::raster_nodes::std_nodes::image::IDENTIFIER, - graphene_std::platform_application_io::bytes_to_image::IDENTIFIER, graphene_std::platform_application_io::image_to_bytes::IDENTIFIER, graphene_std::platform_application_io::rasterize::IDENTIFIER, ] @@ -4672,7 +4640,7 @@ mod tests { migrate(&mut document); let image_node = &document.network_interface.document_network().nodes[&image_id]; - assert_eq!(image_node.inputs.len(), 3, "the image node should gain its placeholder primary input and pipeline scope input"); + assert_eq!(image_node.inputs.len(), 2, "the image node should gain its placeholder primary input"); let migrated = &image_node.inputs[1]; match legacy_input.as_value() { None => assert_eq!(migrated.as_node(), Some(upstream_id), "the wire should sit at input 1"), @@ -4707,27 +4675,6 @@ mod tests { assert!(matches!(migrated, NodeInput::Value { exposed: true, .. }), "the exposed flag should be kept"); } - #[test] - fn cpu_raster_type_defaults_become_gpu_defaults() { - let node_id = NodeId(1); - let mut document = DocumentMessageHandler::default(); - let mut blur_template = resolve_document_node_type(&DefinitionIdentifier::ProtoNode(graphene_std::raster_nodes::effects::blur::IDENTIFIER)) - .expect("the definition should exist") - .default_node_template(); - blur_template.inputs[0] = NodeInput::type_default(item!(Raster), true); - document.network_interface.insert_node(node_id, blur_template, &[]); - - migrate(&mut document); - - let migrated = &document.network_interface.document_network().nodes[&node_id].inputs[0]; - assert_eq!( - migrated.as_value(), - Some(&TaggedValue::TypeDefault(item!(Raster))), - "the CPU raster default should become the GPU raster default" - ); - assert!(matches!(migrated, NodeInput::Value { exposed: true, .. }), "the exposed flag should be kept"); - } - #[test] fn test_no_duplicate_node_replacements() { let mut hashmap = HashMap::::new(); diff --git a/editor/src/node_graph_executor.rs b/editor/src/node_graph_executor.rs index a4bd6859ed..cbd29cc4ec 100644 --- a/editor/src/node_graph_executor.rs +++ b/editor/src/node_graph_executor.rs @@ -1238,3 +1238,82 @@ mod test { } } } + +#[cfg(test)] +mod raster_input_adapter_tests { + use crate::messages::portfolio::document::utility_types::network_interface::{InputConnector, OutputConnector}; + use crate::test_utils::test_prelude::*; + use graph_craft::ProtoNodeIdentifier; + use graph_craft::document::{DocumentNodeImplementation, NodeId}; + use graphene_std::Effects; + use graphene_std::list::{ATTR_EFFECTS, Item}; + use graphene_std::ops::ConvertAsync; + use graphene_std::raster_nodes::adjustments::invert; + use graphene_std::raster_nodes::dehaze::dehaze; + use graphene_std::raster_nodes::filter::median_filter; + use graphene_std::raster_types::{CPU, GPU, Raster}; + use graphene_std::transform::Footprint; + + /// A document whose image feeds `nodes` in turn, ending in the export, with each node's ID. + async fn image_through(editor: &mut EditorTestUtils, color: Color, nodes: &[ProtoNodeIdentifier]) -> Vec { + editor.new_document().await; + editor.create_raster_image(Image::new(4, 4, color), None).await; + let image = editor + .active_document() + .network_interface + .document_network() + .nodes + .iter() + .find(|(_, node)| matches!(&node.implementation, DocumentNodeImplementation::ProtoNode(identifier) if *identifier == graphene_std::raster_nodes::std_nodes::image::IDENTIFIER)) + .map(|(id, _)| *id) + .expect("the pasted image should be an Image node"); + + let mut ids = Vec::new(); + let mut previous = OutputConnector::node(image, 0); + for (index, identifier) in nodes.iter().enumerate() { + let id = editor.create_node_by_name_at(DefinitionIdentifier::ProtoNode(identifier.clone()), (index as i32 + 1) * 10, 0).await; + let input = InputConnector::node_at_index(id, 0); + editor.active_document_mut().network_interface.create_wire(&previous, &input, &[]); + previous = OutputConnector::node(id, 0); + ids.push(id); + } + editor.active_document_mut().network_interface.create_wire(&previous, &InputConnector::Export(0), &[]); + ids + } + + async fn read(editor: &EditorTestUtils, raster: Raster) -> Raster { + let executor = editor.gpu_executor(); + raster.convert(Footprint::DEFAULT, executor).await + } + + #[tokio::test] + async fn an_images_stamped_effects_are_carried_out_before_the_gpu_only_node_it_feeds() { + let mut editor = EditorTestUtils::create(); + image_through(&mut editor, Color::WHITE, &[invert::IDENTIFIER, median_filter::IDENTIFIER, invert::IDENTIFIER]).await; + + let instrumented = editor.eval_graph_until_finished().await.expect("the CPU raster should reach Median through its input adapter"); + let reached_median: Item> = instrumented + .grab_all_input::>>(&editor.runtime) + .next() + .expect("the image should arrive at Median as a CPU raster"); + assert!(reached_median.attribute::(ATTR_EFFECTS).is_some(), "the first Invert should only stamp the image"); + + // Median at its default radius passes its input through, so its output shows what the adapter gave it + let output = instrumented + .grab_all_input::>>(&editor.runtime) + .next() + .expect("Median should output a GPU raster"); + assert!(output.attribute::(ATTR_EFFECTS).is_none(), "no stamp should be left to apply after Median"); + let raster = read(&editor, output.into_element()).await; + assert!(raster.data[0].r() < 0.01, "the white image should be black by the time Median reads it, not {:?}", raster.data[0]); + } + + #[tokio::test] + async fn an_image_feeding_dehaze_compiles_and_renders_without_a_migration() { + let mut editor = EditorTestUtils::create(); + image_through(&mut editor, Color::from_rgbaf32_unchecked(0.5, 0.6, 0.7, 1.), &[dehaze::IDENTIFIER]).await; + + // A compile error or a failed render fails this + editor.eval_graph_uninstrumented().await.expect("the image should reach Dehaze through its input adapter"); + } +} diff --git a/editor/src/test_utils.rs b/editor/src/test_utils.rs index 9e8d2885f6..590bb6acec 100644 --- a/editor/src/test_utils.rs +++ b/editor/src/test_utils.rs @@ -63,6 +63,11 @@ impl EditorTestUtils { editor } + /// The GPU executor the graph runs on. + pub fn gpu_executor(&self) -> ::Executor { + gpu_application_io().gpu_executor().cloned().expect("tests render on the GPU") + } + pub fn dispatch(&mut self, message: impl Into) -> Vec { let mut responses = self.editor.handle_message(message); while self.woken.swap(false, Ordering::Relaxed) { @@ -108,6 +113,33 @@ impl EditorTestUtils { Ok(instrumented) } + /// Compiles and runs the graph without the monitors of [`Instrumented`], which can't wrap the runtime handle that asynchronous nodes take. + pub async fn eval_graph_uninstrumented(&mut self) -> Result<(), String> { + let portfolio = &mut self.portfolio_message_handler_mut(); + let document_id = portfolio.active_document_id.unwrap(); + let (executor, documents) = (&mut portfolio.executor, &mut portfolio.documents); + let document = documents.get_mut(&document_id).unwrap(); + + if let Err(e) = executor.submit_node_graph_evaluation(document, document_id, UVec2::ONE, 1., Default::default(), Vec::new(), true, Default::default()) { + return Err(format!("submit_node_graph_evaluation failed\n\n{e}")); + } + self.finish_evaluation().await + } + + /// Waits for the submitted evaluation and processes its results, failing if the graph didn't render. + async fn finish_evaluation(&mut self) -> Result<(), String> { + self.runtime.run().await; + + let frontend_messages = self.dispatch(Message::Wake); + if frontend_messages.contains(&FrontendMessage::UpdateRenderStatus { status: RenderStatus::Error }) { + return Err("Graph should render".to_string()); + } + for message in frontend_messages { + message.check_node_graph_error(); + } + Ok(()) + } + /// Repeatedly calls [`Self::eval_graph_once`] until no more runs are triggered by deferred messages. pub async fn eval_graph_until_finished(&mut self) -> Result { const MAX_ITERATIONS: usize = 16; diff --git a/node-graph/nodes/blending/src/lib.rs b/node-graph/nodes/blending/src/lib.rs index 6157bd4f75..406c99d102 100644 --- a/node-graph/nodes/blending/src/lib.rs +++ b/node-graph/nodes/blending/src/lib.rs @@ -10,7 +10,7 @@ use vector_types::Gradient; fn blend_mode( _: impl Ctx, /// The content that will be composited when rendering. - #[implementations(Graphic, Vector, Raster, Raster, Color, Gradient, String)] + #[implementations(Graphic, Vector, Raster, Raster, Color, Gradient, String)] content: Item, /// The choice of equation that controls how brightness and color blends between overlapping pixels. blend_mode: Item, @@ -29,7 +29,7 @@ fn blend_mode( fn opacity( _: impl Ctx, /// The content that will be composited when rendering. - #[implementations(Graphic, Vector, Raster, Raster, Color, Gradient, String)] + #[implementations(Graphic, Vector, Raster, Raster, Color, Gradient, String)] content: Item, /// Whether the *Opacity* property is enabled, multiplying the existing opacity by the chosen percentage. #[widget(ParsedWidgetOverride::Hidden)] @@ -76,7 +76,7 @@ fn opacity( fn clipping_mask( _: impl Ctx, /// The content that will be composited when rendering. - #[implementations(Graphic, Vector, Raster, Raster, Color, Gradient, String)] + #[implementations(Graphic, Vector, Raster, Raster, Color, Gradient, String)] content: Item, /// Whether the content inherits the alpha of the content beneath it. clip: Item, diff --git a/node-graph/nodes/gcore/src/animation.rs b/node-graph/nodes/gcore/src/animation.rs index 2eed5d6df8..7891549ff8 100644 --- a/node-graph/nodes/gcore/src/animation.rs +++ b/node-graph/nodes/gcore/src/animation.rs @@ -85,8 +85,8 @@ fn step_real_time( Context -> Item, Context -> Item, Context -> Item, - Context -> Item>, Context -> Item>, + Context -> Item>, Context -> Item, Context -> Item, Context -> Item, @@ -95,8 +95,8 @@ fn step_real_time( Context -> List, Context -> List, Context -> List, - Context -> List>, Context -> List>, + Context -> List>, Context -> List, Context -> List, Context -> List, @@ -131,8 +131,8 @@ fn step_animation_time( Context -> Item, Context -> Item, Context -> Item, - Context -> Item>, Context -> Item>, + Context -> Item>, Context -> Item, Context -> Item, Context -> Item, @@ -141,8 +141,8 @@ fn step_animation_time( Context -> List, Context -> List, Context -> List, - Context -> List>, Context -> List>, + Context -> List>, Context -> List, Context -> List, Context -> List, diff --git a/node-graph/nodes/gcore/src/context_modification.rs b/node-graph/nodes/gcore/src/context_modification.rs index 1d4500f074..281e54f9ba 100644 --- a/node-graph/nodes/gcore/src/context_modification.rs +++ b/node-graph/nodes/gcore/src/context_modification.rs @@ -25,8 +25,8 @@ fn context_modification( Context -> Item, Context -> Item, Context -> Item, - Context -> Item>, Context -> Item>, + Context -> Item>, Context -> Item, Context -> Item, Context -> Item, @@ -38,8 +38,8 @@ fn context_modification( Context -> List, Context -> List, Context -> List, - Context -> List>, Context -> List>, + Context -> List>, Context -> List, Context -> List, Context -> List, diff --git a/node-graph/nodes/graphic/src/artboard.rs b/node-graph/nodes/graphic/src/artboard.rs index 6c8eead70b..9a4498a69f 100644 --- a/node-graph/nodes/graphic/src/artboard.rs +++ b/node-graph/nodes/graphic/src/artboard.rs @@ -16,8 +16,8 @@ fn create_artboard( Context -> List, Context -> List, Context -> List, - Context -> List>, Context -> List>, + Context -> List>, Context -> List, Context -> List, Context -> Item, // TODO: Remove this diff --git a/node-graph/nodes/graphic/src/graphic.rs b/node-graph/nodes/graphic/src/graphic.rs index 0d0ed02795..f3630f8a5f 100644 --- a/node-graph/nodes/graphic/src/graphic.rs +++ b/node-graph/nodes/graphic/src/graphic.rs @@ -30,8 +30,8 @@ fn remove_at_index( List, List, List, - List>, List>, + List>, List, List, List, @@ -64,8 +64,8 @@ fn item_at_index( List, List, List, - List>, List>, + List>, List, List, List, @@ -102,8 +102,8 @@ fn filter( List, List, List, - List>, List>, + List>, List, List, List, @@ -135,8 +135,8 @@ fn reverse( List, List, List, - List>, List>, + List>, List, List, List, @@ -160,8 +160,8 @@ fn shift( List, List, List, - List>, List>, + List>, List, List, List, @@ -205,8 +205,8 @@ fn shuffle( List, List, List, - List>, List>, + List>, List, List, List, @@ -277,8 +277,8 @@ fn slice( List, List, List, - List>, List>, + List>, List, List, List, @@ -351,9 +351,9 @@ fn sort, List, List, List, List, List, List, List, List>, List>, List, List, List, - List, List, List, List, List, List, List, List, List>, List>, List, List, List, - List, List, List, List, List, List, List, List, List>, List>, List, List, List, + List, List, List, List, List, List, List, List, List>, List>, List, List, List, + List, List, List, List, List, List, List, List, List>, List>, List, List, List, + List, List, List, List, List, List, List, List, List>, List>, List, List, List, )] list: List, /// The optional list of orderable values, corresponding item-to-item with the input list, to sort by instead of the items' own values. @@ -412,8 +412,8 @@ fn map( List, List, List, - List>, List>, + List>, List, List, List, @@ -428,8 +428,8 @@ fn map( Context -> List, Context -> List, Context -> List, - Context -> List>, Context -> List>, + Context -> List>, Context -> List, Context -> List, Context -> List, @@ -489,8 +489,8 @@ fn mirror( #[implementations( Context -> Item, Context -> Item, - Context -> Item>, Context -> Item>, + Context -> Item>, Context -> Item, Context -> Item, Context -> Item, @@ -598,8 +598,8 @@ fn write_attribute( List, List, List, - List>, List>, + List>, List, List, List, @@ -911,8 +911,8 @@ fn extend( List, List, List, - List>, List>, + List>, List, List, List, @@ -930,8 +930,8 @@ fn extend( List, List, List, - List>, List>, + List>, List, List, List, @@ -951,9 +951,9 @@ fn extend( #[node_macro::node(category(""))] fn legacy_layer_extend( _: impl Ctx, - #[implementations(List, List, List, List, List>, List>, List, List)] base: List, + #[implementations(List, List, List, List, List>, List>, List, List)] base: List, #[expose] - #[implementations(List, List, List, List, List>, List>, List, List)] + #[implementations(List, List, List, List, List>, List>, List, List)] new: List, nested_node_path: Item, ) -> List { @@ -981,8 +981,8 @@ fn into_group>( #[implementations( List, List, - List>, List>, + List>, List, List, List, diff --git a/node-graph/nodes/gstd/src/platform_application_io.rs b/node-graph/nodes/gstd/src/platform_application_io.rs index e26fb614c1..0beaab6337 100644 --- a/node-graph/nodes/gstd/src/platform_application_io.rs +++ b/node-graph/nodes/gstd/src/platform_application_io.rs @@ -1,10 +1,11 @@ use core_types::Ctx; +use core_types::NodeError; use core_types::color::SRGBA8; use core_types::list::{Item, List}; use core_types::math::bbox::Bbox; -use core_types::ops::{Convert, ConvertAsync}; +use core_types::ops::ConvertAsync; use core_types::transform::Footprint; -use core_types::{ATTR_EDITOR_MERGED_LAYERS, ATTR_TRANSFORM, Interrupt, NodeError}; +use core_types::{ATTR_EDITOR_MERGED_LAYERS, ATTR_TRANSFORM}; use glam::{DAffine2, UVec2}; pub use graph_craft::application_io::resource::{Resource, ResourceHash}; pub use graph_craft::application_io::*; @@ -12,8 +13,8 @@ pub use graph_craft::document::value::RenderOutputType; #[cfg(target_family = "wasm")] pub use graphene_canvas_utils as canvas_utils; use graphic_types::Graphic; -use graphic_types::raster_types::Image; -use graphic_types::raster_types::{GPU, Raster, Storage}; +use graphic_types::raster_types::{CPU, GPU, Raster, Storage}; +use graphic_types::raster_types::{Image, ImageError}; use raster_nodes::raster_kernel::raster_kernel_pipeline; use rendering::{Render, RenderParams}; use std::sync::Arc; @@ -219,15 +220,14 @@ fn pending_resource(_primary: &(), _url: &Item) -> Item { /// /// Supports the formats: PNG, JPG, GIF, WEBP, TIFF, BMP, TGA, ICO, HDR, EXR. #[node_macro::node(category("Data: I/O"), icon("NodeBytesToImage"), name("Bytes to Image"), memoize)] -fn bytes_to_image(_: impl Ctx, data: Item, #[scope(raster_kernel_pipeline::IDENTIFIER)] pipeline: Item<::wgpu_executor::WgpuPipelineCache>) -> Result>, Interrupt> { +fn bytes_to_image(_: impl Ctx, data: Item) -> Result>, ImageError> { let data = data.into_element(); if data.is_empty() { return Ok(Item::default()); } - let image = Image::from_encoded(data.as_ref()).map_err(NodeError::new)?; + let image = Image::from_encoded(data.as_ref())?; - let executor = pipeline.element().executor().cloned().ok_or_else(|| NodeError::new("A GPU is required to load an image"))?; - Ok(Item::new_from_element(Raster::new_cpu(image).convert(Footprint::DEFAULT, executor))) + Ok(Item::new_from_element(Raster::new_cpu(image))) } /// Renders a view of the input graphic within an area defined by the *Footprint*. @@ -325,7 +325,6 @@ mod tests { use super::*; use core_types::Color; use glam::DVec2; - use graphic_types::raster_types::CPU; #[tokio::test] async fn rasterize_renders_the_footprint_area_at_its_resolution() { diff --git a/node-graph/nodes/gstd/src/render_node.rs b/node-graph/nodes/gstd/src/render_node.rs index 11fe3c37cc..227409b893 100644 --- a/node-graph/nodes/gstd/src/render_node.rs +++ b/node-graph/nodes/gstd/src/render_node.rs @@ -30,8 +30,8 @@ fn render_intermediate( Context -> List, Context -> List, Context -> List, - Context -> List>, Context -> List>, + Context -> List>, Context -> List, Context -> List, Context -> List, diff --git a/node-graph/nodes/math/src/lib.rs b/node-graph/nodes/math/src/lib.rs index dbb144b411..1259abc054 100644 --- a/node-graph/nodes/math/src/lib.rs +++ b/node-graph/nodes/math/src/lib.rs @@ -1609,8 +1609,8 @@ fn switch( Context -> Item, Context -> Item, Context -> Item, - Context -> Item>, Context -> Item>, + Context -> Item>, Context -> Item, Context -> Item, Context -> Item, @@ -1639,8 +1639,8 @@ fn switch( Context -> Item, Context -> Item, Context -> Item, - Context -> Item>, Context -> Item>, + Context -> Item>, Context -> Item, Context -> Item, Context -> Item, diff --git a/node-graph/nodes/raster/src/std_nodes.rs b/node-graph/nodes/raster/src/std_nodes.rs index 6f2faabb5c..3542dba7b0 100644 --- a/node-graph/nodes/raster/src/std_nodes.rs +++ b/node-graph/nodes/raster/src/std_nodes.rs @@ -5,14 +5,13 @@ use core_types::ATTR_TRANSFORM; use core_types::context::{Ctx, ExtractFootprint}; use core_types::list::Item; use core_types::math::bbox::Bbox; -use core_types::ops::Convert; -use core_types::transform::{Footprint, Transform}; +use core_types::transform::Transform; use core_types::{Interrupt, NodeError}; use glam::{DAffine2, DVec2, UVec2}; use graphene_resource::Resource; use graphic_types::generator::{GeneratorPattern, NoiseSettings}; -use raster_types::Image; -use raster_types::{GPU, Raster, Storage}; +use raster_types::{CPU, GPU, Raster, Storage}; +use raster_types::{Image, ImageError}; use wgpu_executor::WgpuPipelineCache; use wgpu_executor::raster_kernel::render_generator; @@ -204,16 +203,14 @@ fn image( /// The image file to display. #[widget(ParsedWidgetOverride::Custom = "image_file")] resource: Item, - #[scope(raster_kernel_pipeline::IDENTIFIER)] pipeline: Item, -) -> Result>, Interrupt> { +) -> Result>, ImageError> { let resource = resource.into_element(); if resource.is_empty() { return Ok(Item::default()); } - let image = Image::from_encoded(resource.as_ref()).map_err(NodeError::new)?; + let image = Image::from_encoded(resource.as_ref())?; - let executor = pipeline.element().executor().cloned().ok_or_else(|| NodeError::new("A GPU is required to load an image"))?; - Ok(Item::new_from_element(Raster::new_cpu(image).convert(Footprint::DEFAULT, executor))) + Ok(Item::new_from_element(Raster::new_cpu(image))) } /// Generates customizable procedural noise patterns. diff --git a/node-graph/nodes/repeat/src/repeat_nodes.rs b/node-graph/nodes/repeat/src/repeat_nodes.rs index 2d7d07c2ac..f6024e4c12 100644 --- a/node-graph/nodes/repeat/src/repeat_nodes.rs +++ b/node-graph/nodes/repeat/src/repeat_nodes.rs @@ -53,8 +53,8 @@ fn repeat( Context -> List, Context -> List, Context -> List, - Context -> List>, Context -> List>, + Context -> List>, Context -> List, Context -> List, Context -> List, @@ -98,8 +98,8 @@ fn repeat_array( Context -> List, Context -> List, Context -> List, - Context -> List>, Context -> List>, + Context -> List>, Context -> List, Context -> List, Context -> List, @@ -160,8 +160,8 @@ fn repeat_radial( Context -> List, Context -> List, Context -> List, - Context -> List>, Context -> List>, + Context -> List>, Context -> List, Context -> List, Context -> List, @@ -220,8 +220,8 @@ fn repeat_on_points( Context -> List, Context -> List, Context -> List, - Context -> List>, Context -> List>, + Context -> List>, Context -> List, Context -> List, Context -> List, diff --git a/node-graph/nodes/transform/src/transform_nodes.rs b/node-graph/nodes/transform/src/transform_nodes.rs index 0e6bb8bb20..e0d8a0f7b6 100644 --- a/node-graph/nodes/transform/src/transform_nodes.rs +++ b/node-graph/nodes/transform/src/transform_nodes.rs @@ -18,8 +18,8 @@ fn transform( Context -> Item, Context -> Item, Context -> Item, - Context -> Item>, Context -> Item>, + Context -> Item>, Context -> Item, Context -> Item, )] @@ -95,8 +95,8 @@ fn reset_transform( #[implementations( Context -> Item, Context -> Item, - Context -> Item>, Context -> Item>, + Context -> Item>, Context -> Item, Context -> Item, Context -> Item, @@ -143,8 +143,8 @@ fn replace_transform( #[implementations( Context -> Item, Context -> Item, - Context -> Item>, Context -> Item>, + Context -> Item>, Context -> Item, Context -> Item, Context -> Item, @@ -182,7 +182,7 @@ fn replaced_transform_context, Output = Item>>( /// Obtains the transform of the input content. #[node_macro::node(category("Transform"), icon("NodeExtractTransform"), path(core_types::vector))] -fn extract_transform(_: impl Ctx, #[implementations(Graphic, Vector, Raster, Raster, Color, Gradient, String, Artboard)] content: Item) -> Item { +fn extract_transform(_: impl Ctx, #[implementations(Graphic, Vector, Raster, Raster, Color, Gradient, String, Artboard)] content: Item) -> Item { Item::new_from_element(content.attribute_cloned_or_default(ATTR_TRANSFORM)) } diff --git a/node-graph/nodes/vector/src/vector_nodes.rs b/node-graph/nodes/vector/src/vector_nodes.rs index cf7642be37..80b72256aa 100644 --- a/node-graph/nodes/vector/src/vector_nodes.rs +++ b/node-graph/nodes/vector/src/vector_nodes.rs @@ -553,8 +553,8 @@ fn copy_to_points( Context -> List, Context -> List, Context -> List, - Context -> List>, Context -> List>, + Context -> List>, Context -> List, Context -> List, )] @@ -1263,8 +1263,8 @@ fn pack_strips( #[implementations( List, List, - List>, List>, + List>, )] elements: List, #[default(0.)]