SceneTreeEditor: Fix node_selected signal emission.

Fixes #10131

(cherry picked from commit a80371ce0a)
This commit is contained in:
Andreas Haas 2017-08-20 00:13:10 +02:00 committed by Rémi Verschelde
parent 8bbe893319
commit 8ed6ddd49f
1 changed files with 4 additions and 2 deletions

View File

@ -705,8 +705,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");
}
}