mirror of
https://github.com/godotengine/godot.git
synced 2024-12-09 10:09:20 +08:00
Remove extra signal firing in SELECT_MULTI mode
This commit is contained in:
parent
32640edac7
commit
b7bc609782
@ -664,11 +664,8 @@ void SceneTreeEditor::_cell_multi_selected(Object *p_object, int p_cell, bool p_
|
||||
editor_selection->remove_node(n);
|
||||
}
|
||||
|
||||
// Selection changed to be single node, so emit "selected" (for single node) rather than "changed" (for multiple nodes)
|
||||
if (editor_selection->get_selected_nodes().size() == 1) {
|
||||
selected = editor_selection->get_selected_node_list()[0];
|
||||
emit_signal("node_selected");
|
||||
} else {
|
||||
// Emitted "selected" in _selected_changed() when select single node, so select multiple node emit "changed"
|
||||
if (editor_selection->get_selected_nodes().size() > 1) {
|
||||
emit_signal(SNAME("node_changed"));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user