From 9535831866786adeafbff40f8e46f52fdc62538b Mon Sep 17 00:00:00 2001 From: Raul Santos Date: Tue, 7 Dec 2021 21:00:26 +0100 Subject: Expose `ScriptEditor::edit` to scripting Exposes a method in `EditorInterface` to open scripts on a specified line and column. This method handles if the internal or the external editor should be used. --- editor/editor_plugin.cpp | 5 +++++ editor/editor_plugin.h | 1 + 2 files changed, 6 insertions(+) (limited to 'editor') diff --git a/editor/editor_plugin.cpp b/editor/editor_plugin.cpp index 61c01993ae..3261e6ddaf 100644 --- a/editor/editor_plugin.cpp +++ b/editor/editor_plugin.cpp @@ -166,6 +166,10 @@ void EditorInterface::edit_node(Node *p_node) { EditorNode::get_singleton()->edit_node(p_node); } +void EditorInterface::edit_script(const Ref