summaryrefslogtreecommitdiff
path: root/editor/scene_tree_editor.cpp
diff options
context:
space:
mode:
authorAndreas Haas <liu.gam3@gmail.com>2017-08-20 00:13:10 +0200
committerAndreas Haas <liu.gam3@gmail.com>2017-08-20 00:20:27 +0200
commita80371ce0a2e0f5d64e3fa9b6bbf8dba75724164 (patch)
treed72e63241f9aeef11f3c71f09e0a53512c1b177e /editor/scene_tree_editor.cpp
parent56d9f9df67200b4b5c8ca56b339c75bf94f90007 (diff)
SceneTreeEditor: Fix node_selected signal emission.
Fixes #10131
Diffstat (limited to 'editor/scene_tree_editor.cpp')
-rw-r--r--editor/scene_tree_editor.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/editor/scene_tree_editor.cpp b/editor/scene_tree_editor.cpp
index 94ef712c25..2fab78e8c0 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");
}
}