Fix nodes being deselected upon reparenting
This commit is contained in:
parent
93cdacbb0a
commit
414d84b159
@ -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);
|
_normalize_drop(to_node, to_pos, p_type);
|
||||||
_do_reparent(to_node, to_pos, nodes, !Input::get_singleton()->is_key_pressed(Key::SHIFT));
|
_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) {
|
void SceneTreeDock::_add_children_to_popup(Object *p_obj, int p_depth) {
|
||||||
|
Loading…
Reference in New Issue
Block a user