1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-09 12:50:35 +00:00

Fixed save as not working with scripts

This commit is contained in:
Paulb23
2016-06-22 17:39:02 +01:00
parent 0266d752b3
commit c68e4e8cbe

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;