SceneTreeEditor: Fix node_selected signal emission.

Fixes #10131
This commit is contained in:
Andreas Haas 2017-08-20 00:13:10 +02:00
parent 56d9f9df67
commit a80371ce0a
No known key found for this signature in database
GPG Key ID: B5FFAE1B65FBD2E1
1 changed files with 4 additions and 2 deletions

View File

@ -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");
}
}