Merge pull request #74018 from Abdul-AZ/master

Fix glTF mesh importer not freeing nodes correctly on import
This commit is contained in:
Rémi Verschelde 2023-03-02 11:24:39 +01:00
commit 1c39cc5ff8
No known key found for this signature in database
GPG Key ID: C3336907360768E1

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