diff options
author | Abdulrahman Al Zeidi <abdullrohman514@gmail.com> | 2023-02-27 02:44:23 +0000 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-03-13 14:00:38 +0100 |
commit | e290448fe3295b43f06f23eacb7a07cdc3d064a8 (patch) | |
tree | a5cf44ac0d55d9a183ef129fef0365b95176c3a5 /modules/gltf | |
parent | eb503fb461f996ae9fb56c0525abed784e9ed8db (diff) |
Fix glTF mesh importer not freeing nodes correctly on import
(cherry picked from commit 5e0641ea9af03491889d89f9bdac0785e5bc3158)
Diffstat (limited to 'modules/gltf')
-rw-r--r-- | modules/gltf/extensions/gltf_document_extension_convert_importer_mesh.cpp | 2 |
1 files changed, 1 insertions, 1 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 388c3ec740..2af716b867 100644 --- a/modules/gltf/extensions/gltf_document_extension_convert_importer_mesh.cpp +++ b/modules/gltf/extensions/gltf_document_extension_convert_importer_mesh.cpp @@ -70,7 +70,7 @@ Error GLTFDocumentExtensionConvertImporterMesh::import_post(Ref<GLTFState> p_sta } queue.pop_front(); } - while (!queue.is_empty()) { + while (!delete_queue.is_empty()) { List<Node *>::Element *E = delete_queue.front(); Node *node = E->get(); memdelete(node); |