diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2016-06-23 07:39:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-23 07:39:42 +0200 |
commit | fe087409895c167d0149513495219c2b6640a340 (patch) | |
tree | d98e47981f7609b9f0d744468ea0c3c682b4ef18 | |
parent | 92ee868a94cdd55bbadc39e0e28447d08e7aa0ee (diff) | |
parent | c68e4e8cbe4ac1ff0e52fa9f8f652c82d8cba9b2 (diff) |
Merge pull request #5360 from Paulb23/fix_script_save_as_issue_4210
Fixed save as not working with scripts, issue 4210
-rw-r--r-- | tools/editor/plugins/script_editor_plugin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/editor/plugins/script_editor_plugin.cpp b/tools/editor/plugins/script_editor_plugin.cpp index 7ecd2951d4..10e4fc8475 100644 --- a/tools/editor/plugins/script_editor_plugin.cpp +++ b/tools/editor/plugins/script_editor_plugin.cpp @@ -1138,6 +1138,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<Object>()); editor->save_resource_as( current->get_edited_script() ); } break; |