From c90eda983db4393fa39cc400f2148b8264c2e1fa Mon Sep 17 00:00:00 2001 From: Matthias Moulin Date: Sat, 6 Oct 2018 16:31:58 +0200 Subject: [PATCH] Fix: C4267 --- code/glTF2Importer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/glTF2Importer.cpp b/code/glTF2Importer.cpp index 740935601..8b13ab20f 100755 --- a/code/glTF2Importer.cpp +++ b/code/glTF2Importer.cpp @@ -454,7 +454,7 @@ void glTF2Importer::ImportMeshes(glTF2::Asset& r) std::vector& targets = prim.targets; if (targets.size() > 0) { - aim->mNumAnimMeshes = targets.size(); + aim->mNumAnimMeshes = (unsigned int)targets.size(); aim->mAnimMeshes = new aiAnimMesh*[aim->mNumAnimMeshes]; for (size_t i = 0; i < targets.size(); i++) { aim->mAnimMeshes[i] = aiCreateAnimMesh(aim);