From c27d8dc5dc21a082e782dabe7859f037a11159dd Mon Sep 17 00:00:00 2001 From: James Lindsay <78500760+0HyperCube@users.noreply.github.com> Date: Sat, 26 Oct 2024 21:25:51 +0100 Subject: [PATCH] Fix layer name text input (#2081) --- .../portfolio/document/node_graph/node_graph_message_handler.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/src/messages/portfolio/document/node_graph/node_graph_message_handler.rs b/editor/src/messages/portfolio/document/node_graph/node_graph_message_handler.rs index a0a0c799..80ba4513 100644 --- a/editor/src/messages/portfolio/document/node_graph/node_graph_message_handler.rs +++ b/editor/src/messages/portfolio/document/node_graph/node_graph_message_handler.rs @@ -1631,7 +1631,7 @@ impl NodeGraphMessageHandler { Separator::new(SeparatorType::Related).widget_holder(), IconLabel::new("Layer").tooltip("Name of the selected layer").widget_holder(), Separator::new(SeparatorType::Related).widget_holder(), - TextInput::new(context.document_name) + TextInput::new(context.network_interface.frontend_display_name(&layer, context.selection_network_path)) .on_update(move |text_input| { NodeGraphMessage::SetDisplayName { node_id: layer,