You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Remove RES and REF typedefs in favor of spelled out Ref<>
These typedefs don't save much typing compared to the full `Ref<Resource>` and `Ref<RefCounted>`, yet they sometimes introduce confusion among new contributors.
This commit is contained in:
@@ -398,7 +398,7 @@ void ScriptCreateDialog::_create_new() {
|
||||
|
||||
void ScriptCreateDialog::_load_exist() {
|
||||
String path = file_path->get_text();
|
||||
RES p_script = ResourceLoader::load(path, "Script");
|
||||
Ref<Resource> p_script = ResourceLoader::load(path, "Script");
|
||||
if (p_script.is_null()) {
|
||||
alert->set_text(vformat(TTR("Error loading script from %s"), path));
|
||||
alert->popup_centered();
|
||||
|
||||
Reference in New Issue
Block a user