Merge pull request #70811 from jamesmintram/jamesm/bugfix/gltf-import-fix-stale-node-ref

Update stale node ref after replace_by in GLTF importer
This commit is contained in:
Rémi Verschelde 2023-01-03 12:33:53 +01:00
commit ccc609d824
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -59,6 +59,7 @@ Error GLTFDocumentExtensionConvertImporterMesh::import_post(Ref<GLTFState> p_sta
mesh_instance_node_3d->set_skeleton_path(mesh_3d->get_skeleton_path());
node->replace_by(mesh_instance_node_3d);
delete_queue.push_back(node);
node = mesh_instance_node_3d;
} else {
memdelete(mesh_instance_node_3d);
}