From 055d543117f89f37569312b04e875164516ef491 Mon Sep 17 00:00:00 2001 From: Keavon Chambers Date: Mon, 3 Nov 2025 13:35:56 -0800 Subject: [PATCH] Rename the 'Index' node to 'Index Elements' --- editor/src/messages/portfolio/document_migration.rs | 4 ++-- node-graph/gcore/src/graphic.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/editor/src/messages/portfolio/document_migration.rs b/editor/src/messages/portfolio/document_migration.rs index 4a3143cc..545c996a 100644 --- a/editor/src/messages/portfolio/document_migration.rs +++ b/editor/src/messages/portfolio/document_migration.rs @@ -78,8 +78,8 @@ const NODE_REPLACEMENTS: &[NodeReplacement<'static>] = &[ aliases: &["graphene_core::graphic_element::FlattenVectorNode"], }, NodeReplacement { - node: graphene_std::graphic::index::IDENTIFIER, - aliases: &["graphene_core::graphic_element::IndexNode"], + node: graphene_std::graphic::index_elements::IDENTIFIER, + aliases: &["graphene_core::graphic_element::IndexNode", "graphene_core::graphic::IndexNode"], }, // math_nodes NodeReplacement { diff --git a/node-graph/gcore/src/graphic.rs b/node-graph/gcore/src/graphic.rs index 31a0f697..02852c30 100644 --- a/node-graph/gcore/src/graphic.rs +++ b/node-graph/gcore/src/graphic.rs @@ -443,7 +443,7 @@ async fn flatten_vector(_: impl Ctx, content: Table) -> Table { /// Returns the value at the specified index in the collection. /// If that index has no value, the type's default value is returned. #[node_macro::node(category("General"))] -fn index( +fn index_elements( _: impl Ctx, /// The collection of data, such as a list or table. #[implementations(