summaryrefslogtreecommitdiffstats
path: root/editor/plugins/script_editor_plugin.cpp
diff options
context:
space:
mode:
authorYuri Sizov <yuris@humnom.net>2023-12-14 17:38:30 +0100
committerYuri Sizov <yuris@humnom.net>2023-12-14 17:38:30 +0100
commit8f33b4e83a81a18d6a2d58b46bb2b4388c429aaa (patch)
tree7d90b7a8e8cbbaed7976acd892e1c931d18757bc /editor/plugins/script_editor_plugin.cpp
parent6faa5c6dc479bebd4b92a5251fafe22b21ca9523 (diff)
parent59787683a91c25d28e69b67ae9a56eac6f6d83bd (diff)
downloadredot-engine-8f33b4e83a81a18d6a2d58b46bb2b4388c429aaa.tar.gz
Merge pull request #84882 from Invertex/select-instance-asset
Add "Show In FileSystem" to the Scene hierarchy right-click
Diffstat (limited to 'editor/plugins/script_editor_plugin.cpp')
-rw-r--r--editor/plugins/script_editor_plugin.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp
index fa28af9671..e917aab6ad 100644
--- a/editor/plugins/script_editor_plugin.cpp
+++ b/editor/plugins/script_editor_plugin.cpp
@@ -1427,11 +1427,7 @@ void ScriptEditor::_menu_option(int p_option) {
path = path.get_slice("::", 0); // Show the scene instead.
}
- FileSystemDock *file_system_dock = FileSystemDock::get_singleton();
- file_system_dock->navigate_to_path(path);
- // Ensure that the FileSystem dock is visible.
- TabContainer *dock_tab_container = (TabContainer *)file_system_dock->get_parent_control();
- dock_tab_container->set_current_tab(dock_tab_container->get_tab_idx_from_control(file_system_dock));
+ FileSystemDock::get_singleton()->navigate_to_path(path);
}
} break;
case CLOSE_DOCS: {