diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-01-04 16:39:53 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-01-04 16:39:53 +0100 |
commit | 1312a73304ce8e24c155e58c34c04a03871f1d18 (patch) | |
tree | 011a4e8fe47d02b181edc20d79e320e37b7deafc /editor/scene_tree_dock.cpp | |
parent | 5d44c85d4c5b1d70b8162bc3a12b64007e775472 (diff) | |
parent | 414d84b159cc55ac8ce5d61717add0cffa0f0280 (diff) | |
download | redot-engine-1312a73304ce8e24c155e58c34c04a03871f1d18.tar.gz |
Merge pull request #84135 from aXu-AP/reparent-select-fix
Fix nodes being deselected upon reparenting
Diffstat (limited to 'editor/scene_tree_dock.cpp')
-rw-r--r-- | editor/scene_tree_dock.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index 3df5adf068..1d96b59368 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -3065,6 +3065,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) { |