also cleansup srclist

pull/5721/head
Matthias Möller 2024-08-17 14:18:46 +02:00
parent 9664bc6b4f
commit 6016529908
1 changed files with 3 additions and 0 deletions

View File

@ -253,6 +253,9 @@ void SceneCombiner::AttachToGraph(aiScene *master, std::vector<NodeAttachmentInf
void SceneCombiner::MergeScenes(aiScene **_dest, aiScene *master, std::vector<AttachmentInfo> &srcList, unsigned int flags) {
if (nullptr == _dest) {
delete master;
for (const auto &item : srcList) {
delete item.scene;
}
return;
}