Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

Fixed 'Open Documentation' ignoring non-top-level nodes.

Edward Chand9c53f29e008
diff --git a/editor/docks/scene_tree_dock.cpp b/editor/docks/scene_tree_dock.cpp
index 1e966b4d0db..70487407bb7 100644
--- a/editor/docks/scene_tree_dock.cpp
+++ b/editor/docks/scene_tree_dock.cpp
@@ -1311,8 +1311,7 @@ void SceneTreeDock::_tool_selected(int p_tool, bool p_confirm_override) {
}
} break;
case TOOL_OPEN_DOCUMENTATION: {
- const List<Node *> selection = editor_selection->get_top_selected_node_list();
- for (const Node *node : selection) {
+ for (const Node *node : editor_selection->get_full_selected_node_list()) {
String class_name;
Ref<Script> script_base = node->get_script();
while (script_base.is_valid()) {