mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +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
|
@ -81,8 +81,8 @@ void PluginConfigDialog::_on_confirmed() {
|
|||
template_content = templates[0].content;
|
||||
}
|
||||
Ref<Script> script = ScriptServer::get_language(lang_idx)->make_template(template_content, class_name, "EditorPlugin");
|
||||
script->set_path(script_path);
|
||||
ResourceSaver::save(script_path, script);
|
||||
script->set_path(script_path, true);
|
||||
ResourceSaver::save(script);
|
||||
|
||||
emit_signal(SNAME("plugin_ready"), script.ptr(), active_edit->is_pressed() ? _to_absolute_plugin_path(_get_subfolder()) : "");
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue