From b5fa2a3d3af439a14ca1b4d85f6deb3f53aea914 Mon Sep 17 00:00:00 2001 From: jsjtxietian Date: Tue, 27 Aug 2024 11:42:18 +0800 Subject: [PATCH] Support opening custom class documentation with "Open Documentation" menu entry --- editor/scene_tree_dock.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index 30050901d9b..02c8a03ac6e 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -1181,7 +1181,16 @@ void SceneTreeDock::_tool_selected(int p_tool, bool p_confirm_override) { case TOOL_OPEN_DOCUMENTATION: { List selection = editor_selection->get_selected_node_list(); for (const Node *node : selection) { - ScriptEditor::get_singleton()->goto_help("class_name:" + node->get_class()); + String class_name; + Ref