Fix glTF mesh importer not freeing nodes correctly on import

(cherry picked from commit 5e0641ea9a)
This commit is contained in:
Abdulrahman Al Zeidi 2023-02-27 02:44:23 +00:00 committed by Yuri Sizov
parent eb503fb461
commit e290448fe3

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