diff options
author | sent44 <sentbysent@gmail.com> | 2021-05-14 02:50:25 +0700 |
---|---|---|
committer | sent44 <sentbysent@gmail.com> | 2021-05-15 18:47:00 +0700 |
commit | 2b30728ebf266956ebe2d6e3b26d0eb4a729d25a (patch) | |
tree | 8679a84ffda1ca37ee0f96d01cf328e3ad004236 /modules/visual_script | |
parent | a3dd18b12e13938492e571cfabf0ec514bf97c75 (diff) |
Add get_base_editor to ScriptEditorBase
Diffstat (limited to 'modules/visual_script')
-rw-r--r-- | modules/visual_script/visual_script_editor.cpp | 4 | ||||
-rw-r--r-- | modules/visual_script/visual_script_editor.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/modules/visual_script/visual_script_editor.cpp b/modules/visual_script/visual_script_editor.cpp index dc400982e8..f2599c707a 100644 --- a/modules/visual_script/visual_script_editor.cpp +++ b/modules/visual_script/visual_script_editor.cpp @@ -2710,6 +2710,10 @@ void VisualScriptEditor::set_debugger_active(bool p_active) { } } +Control *VisualScriptEditor::get_base_editor() const { + return graph; +} + void VisualScriptEditor::set_tooltip_request_func(String p_method, Object *p_obj) { } diff --git a/modules/visual_script/visual_script_editor.h b/modules/visual_script/visual_script_editor.h index fc9a2df60f..ef3a5d11c0 100644 --- a/modules/visual_script/visual_script_editor.h +++ b/modules/visual_script/visual_script_editor.h @@ -320,6 +320,8 @@ public: virtual bool can_lose_focus_on_node_selection() override { return false; } virtual void validate() override; + virtual Control *get_base_editor() const override; + static void register_editor(); static void free_clipboard(); |