From 897de50d717c1b643ae40d164387be43d33230c8 Mon Sep 17 00:00:00 2001 From: James Mintram Date: Sun, 1 Jan 2023 20:14:33 +0000 Subject: Update stale node ref after replace_by in GLTF importer --- .../gltf/extensions/gltf_document_extension_convert_importer_mesh.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/gltf/extensions/gltf_document_extension_convert_importer_mesh.cpp b/modules/gltf/extensions/gltf_document_extension_convert_importer_mesh.cpp index cfa498af65..4b71511582 100644 --- a/modules/gltf/extensions/gltf_document_extension_convert_importer_mesh.cpp +++ b/modules/gltf/extensions/gltf_document_extension_convert_importer_mesh.cpp @@ -59,6 +59,7 @@ Error GLTFDocumentExtensionConvertImporterMesh::import_post(Ref 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); } -- cgit v1.2.3