From 5907bddda529e39ccac443aa60e1d69d138db6f0 Mon Sep 17 00:00:00 2001 From: Paulb23 Date: Wed, 22 Jun 2016 17:39:02 +0100 Subject: [PATCH] Fixed save as not working with scripts (cherry picked from commit c68e4e8cbe4ac1ff0e52fa9f8f652c82d8cba9b2) --- tools/editor/plugins/script_editor_plugin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/editor/plugins/script_editor_plugin.cpp b/tools/editor/plugins/script_editor_plugin.cpp index 12496112945..a8fde7b1098 100644 --- a/tools/editor/plugins/script_editor_plugin.cpp +++ b/tools/editor/plugins/script_editor_plugin.cpp @@ -1070,6 +1070,7 @@ void ScriptEditor::_menu_option(int p_option) { if (trim_trailing_whitespace_on_save) { _trim_trailing_whitespace(current->get_text_edit()); } + editor->push_item(current->get_edited_script()->cast_to()); editor->save_resource_as( current->get_edited_script() ); } break;