From 04c6d8347b67cf0c930ab34e54e48e419cbc9bdc Mon Sep 17 00:00:00 2001 From: haroonq <29288912+haroonq@users.noreply.github.com> Date: Mon, 29 Oct 2018 15:23:26 -0700 Subject: [PATCH] Update glTF2Exporter.cpp --- code/glTF2Exporter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/glTF2Exporter.cpp b/code/glTF2Exporter.cpp index f6134492c..ee71188d5 100644 --- a/code/glTF2Exporter.cpp +++ b/code/glTF2Exporter.cpp @@ -974,7 +974,7 @@ inline void ExtractTranslationSampler(Asset& asset, std::string& animId, Ref times(numKeyframes); - std::vector values(numKeyframes * 3); + std::vector values(numKeyframes * 3); for (unsigned int i = 0; i < numKeyframes; ++i) { const aiVectorKey& key = nodeChannel->mPositionKeys[i]; // mTime is measured in ticks, but GLTF time is measured in seconds, so convert. @@ -997,7 +997,7 @@ inline void ExtractScaleSampler(Asset& asset, std::string& animId, Ref& } std::vector times(numKeyframes); - std::vector values(numKeyframes * 3); + std::vector values(numKeyframes * 3); for (unsigned int i = 0; i < numKeyframes; ++i) { const aiVectorKey& key = nodeChannel->mScalingKeys[i]; // mTime is measured in ticks, but GLTF time is measured in seconds, so convert. @@ -1020,7 +1020,7 @@ inline void ExtractRotationSampler(Asset& asset, std::string& animId, Ref times(numKeyframes); - std::vector values(numKeyframes * 4); + std::vector values(numKeyframes * 4); for (unsigned int i = 0; i < numKeyframes; ++i) { const aiQuatKey& key = nodeChannel->mRotationKeys[i]; // mTime is measured in ticks, but GLTF time is measured in seconds, so convert.