Browse Source

Merge pull request #55286 from KoBeWi/scene_prophet

Rémi Verschelde 3 năm trước cách đây
mục cha
commit
da25843b40
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      editor/plugins/script_editor_plugin.cpp

+ 5 - 1
editor/plugins/script_editor_plugin.cpp

@@ -1415,8 +1415,12 @@ void ScriptEditor::_menu_option(int p_option) {
 			} break;
 			case SHOW_IN_FILE_SYSTEM: {
 				const RES script = current->get_edited_resource();
-				const String path = script->get_path();
+				String path = script->get_path();
 				if (!path.is_empty()) {
+					if (script->is_built_in()) {
+						path = path.get_slice("::", 0); // Show the scene instead.
+					}
+
 					FileSystemDock *file_system_dock = EditorNode::get_singleton()->get_filesystem_dock();
 					file_system_dock->navigate_to_path(path);
 					// Ensure that the FileSystem dock is visible.