Update stale node ref after replace_by in GLTF importer

This commit is contained in:
James Mintram 2023-01-01 20:14:33 +00:00
parent 8a98110e3e
commit 897de50d71
1 changed files with 1 additions and 0 deletions

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);
}