Skip to content

Commit

Permalink
Merge pull request assimp#5092 from luho383/scene_combiner_copy_metad…
Browse files Browse the repository at this point in the history
…ata_fix

Fix: Copy aiMetadata in SceneCombiner
  • Loading branch information
kimkulling authored May 13, 2023
2 parents cb22d53 + 9ea37b5 commit 41102ee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/Common/SceneCombiner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1349,6 +1349,9 @@ void SceneCombiner::Copy(aiMetadata **_dest, const aiMetadata *src) {
case AI_AIVECTOR3D:
out.mData = new aiVector3D(*static_cast<aiVector3D *>(in.mData));
break;
case AI_AIMETADATA:
out.mData = new aiMetadata(*static_cast<aiMetadata *>(in.mData));
break;
default:
ai_assert(false);
break;
Expand Down

0 comments on commit 41102ee

Please sign in to comment.