SceneTreeEditor: Fix node_selected signal emission.
Fixes #10131
(cherry picked from commit a80371ce0a
)
This commit is contained in:
parent
8bbe893319
commit
8ed6ddd49f
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue