Rename instance()->instantiate() when it's a verb
This commit is contained in:
1 parent
60dcc4f39c
commit
e28fd07b2b
371 files changed
+1318
-1318
No files matched your search
@@ -134,7 +134,7 @@ Ref<GDScriptParserRef> GDScriptCache::get_parser(const String &p_path, GDScriptP
|
||||
return ref;
|
||||
}
|
||||
GDScriptParser *parser = memnew(GDScriptParser);
|
||||
ref.instance();
|
||||
ref.instantiate();
|
||||
ref->parser = parser;
|
||||
ref->path = p_path;
|
||||
singleton->parser_map[p_path] = ref.ptr();
|
||||
@@ -180,7 +180,7 @@ Ref<GDScript> GDScriptCache::get_shallow_script(const String &p_path, const Stri
|
||||
}
|
||||
|
||||
Ref<GDScript> script;
|
||||
script.instance();
|
||||
script.instantiate();
|
||||
script->set_path(p_path, true);
|
||||
script->set_script_path(p_path);
|
||||
script->load_source_code(p_path);
|
||||
|
||||
Reference in new issue
Block a user