aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins/script_text_editor.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2017-06-30 21:30:17 -0300
committerJuan Linietsky2017-06-30 21:35:05 -0300
commit2a3e00c8c7e6f997b12864755a3df3b9bd3cca05 (patch)
tree807a72e686f76fcf44ecd5fb2e6834545d98b38f /editor/plugins/script_text_editor.cpp
parente2e73ec906d0671c870ff64eefd15dfc86abaaec (diff)
downloadgodot-2a3e00c8c7e6f997b12864755a3df3b9bd3cca05.tar.gz
godot-2a3e00c8c7e6f997b12864755a3df3b9bd3cca05.tar.zst
godot-2a3e00c8c7e6f997b12864755a3df3b9bd3cca05.zip
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 60fd9d8e3..83741c7fb 100644
--- a/editor/plugins/script_text_editor.cpp
+++ b/editor/plugins/script_text_editor.cpp
@@ -1093,6 +1093,10 @@ Control *ScriptTextEditor::get_edit_menu() {
return edit_hb;
}
+void ScriptTextEditor::clear_edit_menu() {
+ memdelete(edit_hb);
+}
+
void ScriptTextEditor::reload(bool p_soft) {
TextEdit *te = code_editor->get_text_edit();