diff options
author | James Mintram <james@rattlecan.games> | 2023-01-01 20:14:33 +0000 |
---|---|---|
committer | James Mintram <james@rattlecan.games> | 2023-01-01 20:14:33 +0000 |
commit | 897de50d717c1b643ae40d164387be43d33230c8 (patch) | |
tree | 893176740baeba26d2f33843830644ee88964443 | |
parent | 8a98110e3e353a9a3b86b4a0bd56adf405bd6d93 (diff) |
Update stale node ref after replace_by in GLTF importer
-rw-r--r-- | modules/gltf/extensions/gltf_document_extension_convert_importer_mesh.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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<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); } |