Fix nodes being deselected upon reparenting

This commit is contained in:
aXu-AP 2023-10-29 10:29:06 +02:00
parent 93cdacbb0a
commit 414d84b159

View File

@ -3000,6 +3000,9 @@ void SceneTreeDock::_nodes_dragged(Array p_nodes, NodePath p_to, int p_type) {
_normalize_drop(to_node, to_pos, p_type);
_do_reparent(to_node, to_pos, nodes, !Input::get_singleton()->is_key_pressed(Key::SHIFT));
for (Node *E : nodes) {
editor_selection->add_node(E);
}
}
void SceneTreeDock::_add_children_to_popup(Object *p_obj, int p_depth) {