mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 15:21:56 -05:00
Clarify API for top selected nodes in EditorSelection and make public
This commit is contained in:
@@ -6449,7 +6449,7 @@ void EditorNode::reload_instances_with_path_in_edited_scenes() {
|
||||
|
||||
// Store all the paths for any selected nodes which are ancestors of the node we're replacing.
|
||||
List<NodePath> selected_node_paths;
|
||||
for (Node *selected_node : editor_selection->get_selected_node_list()) {
|
||||
for (Node *selected_node : editor_selection->get_top_selected_node_list()) {
|
||||
if (selected_node == original_node || original_node->is_ancestor_of(selected_node)) {
|
||||
selected_node_paths.push_back(original_node->get_path_to(selected_node));
|
||||
editor_selection->remove_node(selected_node);
|
||||
|
||||
Reference in New Issue
Block a user