diff options
author | kobewi <kobewi4e@gmail.com> | 2024-02-13 16:54:33 +0100 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2024-02-13 16:54:33 +0100 |
commit | 8ec86e29c85c6557a87f828a10b8c3656c4a9f7b (patch) | |
tree | 2a695aa85550c8b75601e9979b1edfef4f76e90a /editor/scene_tree_dock.cpp | |
parent | dfe226b93346c208787728eceecc2c64d81a9553 (diff) | |
download | redot-engine-8ec86e29c85c6557a87f828a10b8c3656c4a9f7b.tar.gz |
Rework how script is edited when clicking icon
Diffstat (limited to 'editor/scene_tree_dock.cpp')
-rw-r--r-- | editor/scene_tree_dock.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index d7738e0ba5..413281ad08 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -1578,9 +1578,7 @@ void SceneTreeDock::_load_request(const String &p_path) { } void SceneTreeDock::_script_open_request(const Ref<Script> &p_script) { - if (ScriptEditor::get_singleton()->edit(p_script, true)) { - EditorNode::get_singleton()->editor_select(EditorNode::EDITOR_SCRIPT); - } + EditorNode::get_singleton()->push_item_no_inspector(p_script.ptr()); } void SceneTreeDock::_push_item(Object *p_object) { |