summaryrefslogtreecommitdiffstats
path: root/editor/plugins/script_text_editor.cpp
diff options
context:
space:
mode:
authorsent44 <sentbysent@gmail.com>2021-05-14 02:50:25 +0700
committersent44 <sentbysent@gmail.com>2021-05-15 18:47:00 +0700
commit2b30728ebf266956ebe2d6e3b26d0eb4a729d25a (patch)
tree8679a84ffda1ca37ee0f96d01cf328e3ad004236 /editor/plugins/script_text_editor.cpp
parenta3dd18b12e13938492e571cfabf0ec514bf97c75 (diff)
downloadredot-engine-2b30728ebf266956ebe2d6e3b26d0eb4a729d25a.tar.gz
Add get_base_editor to ScriptEditorBase
Diffstat (limited to 'editor/plugins/script_text_editor.cpp')
-rw-r--r--editor/plugins/script_text_editor.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp
index c982207224..e74f301676 100644
--- a/editor/plugins/script_text_editor.cpp
+++ b/editor/plugins/script_text_editor.cpp
@@ -1402,6 +1402,10 @@ void ScriptTextEditor::set_tooltip_request_func(String p_method, Object *p_obj)
void ScriptTextEditor::set_debugger_active(bool p_active) {
}
+Control *ScriptTextEditor::get_base_editor() const {
+ return code_editor->get_text_editor();
+}
+
Variant ScriptTextEditor::get_drag_data_fw(const Point2 &p_point, Control *p_from) {
return Variant();
}