From 9ea37b5330937a8aa4e99b87b847a6a376130557 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lutz=20H=C3=B6ren?= Date: Thu, 11 May 2023 08:00:25 +0200 Subject: [PATCH] copy aiMetadata objects in scene combiner --- code/Common/SceneCombiner.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/Common/SceneCombiner.cpp b/code/Common/SceneCombiner.cpp index 0f5386b26..0188f5dea 100644 --- a/code/Common/SceneCombiner.cpp +++ b/code/Common/SceneCombiner.cpp @@ -1349,6 +1349,9 @@ void SceneCombiner::Copy(aiMetadata **_dest, const aiMetadata *src) { case AI_AIVECTOR3D: out.mData = new aiVector3D(*static_cast(in.mData)); break; + case AI_AIMETADATA: + out.mData = new aiMetadata(*static_cast(in.mData)); + break; default: ai_assert(false); break;