From 0af05aa5ff6a1fe3898d959224b9277cb8d3593e Mon Sep 17 00:00:00 2001 From: Timon Date: Sat, 18 Jul 2026 12:04:07 +0200 Subject: [PATCH] Desktop: Stop compiling the editor into the wasm wrapper (#4348) * Make wasm wrapper not depend on editor on native * Introduce pkg-native * Fix tests * Fix fmt * Correct span and make cargo fmt work inside editor_commands block * Review * Fix lint --- frontend/wrapper/src/editor_commands.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/wrapper/src/editor_commands.rs b/frontend/wrapper/src/editor_commands.rs index ad923e7594..34b85a8b3a 100644 --- a/frontend/wrapper/src/editor_commands.rs +++ b/frontend/wrapper/src/editor_commands.rs @@ -17,7 +17,6 @@ mod editor_commands { use editor::messages::clipboard::utility_types::ClipboardContentRaw; use editor::messages::input_mapper::utility_types::input_keyboard::ModifierKeys; use editor::messages::input_mapper::utility_types::input_mouse::{EditorMouseState, ScrollDelta}; - use editor::messages::portfolio::document::node_graph::document_node_definitions::DefinitionIdentifier; use editor::messages::portfolio::document::utility_types::document_metadata::LayerNodeIdentifier; use editor::messages::portfolio::document::utility_types::network_interface::ImportOrExport; use editor::messages::portfolio::utility_types::PanelGroupId; @@ -516,11 +515,11 @@ mod editor_commands { } /// Creates a new document node in the node graph - fn create_node(node_type: String, x: i32, y: i32) -> Message { + fn create_node(node_type: Any, x: i32, y: i32) -> Message { let id = NodeId::new(); NodeGraphMessage::CreateNodeFromContextMenu { node_id: Some(id), - node_type: DefinitionIdentifier::from_serialized(&node_type), + node_type: node_type.cast(), xy: Some((x / 24, y / 24)), add_transaction: true, }