Fix glTF mesh importer not freeing nodes correctly on import

This commit is contained in:
Abdulrahman Al Zeidi 2023-02-27 02:44:23 +00:00
parent 0cd1483132
commit 5e0641ea9a
1 changed files with 1 additions and 1 deletions

View File

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