You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +00:00
Swap arguments of ResourceSaver.save()
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user