From 98af47944a9612071c1539cb1d67418c582dc5c7 Mon Sep 17 00:00:00 2001 From: Sanketjadhav31 Date: Thu, 11 Jun 2026 01:04:33 +0530 Subject: [PATCH 1/2] Fix stale inputs_count in text node migration --- editor/src/messages/portfolio/document_migration.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/src/messages/portfolio/document_migration.rs b/editor/src/messages/portfolio/document_migration.rs index 8f7915b7a4..7a2cd01e90 100644 --- a/editor/src/messages/portfolio/document_migration.rs +++ b/editor/src/messages/portfolio/document_migration.rs @@ -1574,6 +1574,9 @@ fn migrate_node(node_id: &NodeId, node: &DocumentNode, network_path: &[NodeId], for i in 10..=12 { document.network_interface.set_input(&InputConnector::node(*node_id, i), old_inputs[i - 2].clone(), network_path); } + + // Keep inputs_count synchronized because subsequent Text migrations depend on it (see line 1692) + inputs_count = 13; } // Upgrade Sine, Cosine, and Tangent nodes to include a boolean input for whether the output should be in radians, which was previously the only option but is now not the default From 1a9c00d4e9881fd6e0956b8222db68aac592c4d5 Mon Sep 17 00:00:00 2001 From: Sanket Jadhav Date: Thu, 11 Jun 2026 08:27:20 +0530 Subject: [PATCH 2/2] Update editor/src/messages/portfolio/document_migration.rs Applied reviewer suggestion for a more robust reference to the dependent Text migration. Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> --- editor/src/messages/portfolio/document_migration.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/src/messages/portfolio/document_migration.rs b/editor/src/messages/portfolio/document_migration.rs index 7a2cd01e90..a485c62b9d 100644 --- a/editor/src/messages/portfolio/document_migration.rs +++ b/editor/src/messages/portfolio/document_migration.rs @@ -1575,7 +1575,7 @@ fn migrate_node(node_id: &NodeId, node: &DocumentNode, network_path: &[NodeId], document.network_interface.set_input(&InputConnector::node(*node_id, i), old_inputs[i - 2].clone(), network_path); } - // Keep inputs_count synchronized because subsequent Text migrations depend on it (see line 1692) + // Keep inputs_count synchronized because subsequent Text migrations depend on it (the `inputs_count == 13` Text migration below) inputs_count = 13; }