Fixed save as not working with scripts
(cherry picked from commit c68e4e8cbe
)
This commit is contained in:
parent
39cc2cbfb9
commit
5907bddda5
|
@ -1070,6 +1070,7 @@ void ScriptEditor::_menu_option(int p_option) {
|
||||||
if (trim_trailing_whitespace_on_save) {
|
if (trim_trailing_whitespace_on_save) {
|
||||||
_trim_trailing_whitespace(current->get_text_edit());
|
_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() );
|
editor->save_resource_as( current->get_edited_script() );
|
||||||
|
|
||||||
} break;
|
} break;
|
||||||
|
|
Loading…
Reference in New Issue