diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-03 12:33:53 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-03 12:33:53 +0100 |
commit | ccc609d824802d1d1a20f34bda69ecac75f5a8a1 (patch) | |
tree | 661835962f5c410ca965a960c2cc8f78c5d5af58 /modules | |
parent | c328d76483f42674c5872c9749a3fbf61413dade (diff) | |
parent | 897de50d717c1b643ae40d164387be43d33230c8 (diff) |
Merge pull request #70811 from jamesmintram/jamesm/bugfix/gltf-import-fix-stale-node-ref
Update stale node ref after replace_by in GLTF importer
Diffstat (limited to 'modules')
-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); } |