From a80371ce0a2e0f5d64e3fa9b6bbf8dba75724164 Mon Sep 17 00:00:00 2001 From: Andreas Haas Date: Sun, 20 Aug 2017 00:13:10 +0200 Subject: [PATCH] SceneTreeEditor: Fix node_selected signal emission. Fixes #10131 --- editor/scene_tree_editor.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/editor/scene_tree_editor.cpp b/editor/scene_tree_editor.cpp index 94ef712c251..2fab78e8c06 100644 --- a/editor/scene_tree_editor.cpp +++ b/editor/scene_tree_editor.cpp @@ -573,8 +573,10 @@ void SceneTreeEditor::set_selected(Node *p_node, bool p_emit_selected) { selected = NULL; _update_tree(); selected = p_node; - if (p_emit_selected) - emit_signal("node_selected"); + } + + if (p_emit_selected) { + emit_signal("node_selected"); } }