You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Rename instance()->instantiate() when it's a verb
This commit is contained in:
@@ -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 + "'.");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user