Merge pull request #5360 from Paulb23/fix_script_save_as_issue_4210

Fixed save as not working with scripts, issue 4210
This commit is contained in:
Rémi Verschelde 2016-06-23 07:39:42 +02:00 committed by GitHub
commit fe08740989
1 changed files with 1 additions and 0 deletions

View File

@ -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;