mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
Swap arguments of ResourceSaver.save()
This commit is contained in:
parent
ba3734e69a
commit
c3606cb5f3
57 changed files with 97 additions and 99 deletions
|
|
@ -385,7 +385,7 @@ void ScriptCreateDialog::_create_new() {
|
|||
} else {
|
||||
String lpath = ProjectSettings::get_singleton()->localize_path(file_path->get_text());
|
||||
scr->set_path(lpath);
|
||||
Error err = ResourceSaver::save(lpath, scr, ResourceSaver::FLAG_CHANGE_PATH);
|
||||
Error err = ResourceSaver::save(scr, lpath, ResourceSaver::FLAG_CHANGE_PATH);
|
||||
if (err != OK) {
|
||||
alert->set_text(TTR("Error - Could not create script in filesystem."));
|
||||
alert->popup_centered();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue