mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 01:51:10 +00:00
Rename instance()->instantiate() when it's a verb
This commit is contained in:
parent
60dcc4f39c
commit
e28fd07b2b
371 changed files with 1318 additions and 1318 deletions
|
|
@ -193,7 +193,7 @@ void MeshLibraryEditor::_import_scene(Node *p_scene, Ref<MeshLibrary> p_library,
|
|||
void MeshLibraryEditor::_import_scene_cbk(const String &p_str) {
|
||||
Ref<PackedScene> ps = ResourceLoader::load(p_str, "PackedScene");
|
||||
ERR_FAIL_COND(ps.is_null());
|
||||
Node *scene = ps->instance();
|
||||
Node *scene = ps->instantiate();
|
||||
|
||||
ERR_FAIL_COND_MSG(!scene, "Cannot create an instance from PackedScene '" + p_str + "'.");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue