summaryrefslogtreecommitdiff
path: root/indra/newview/gltf/animation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/gltf/animation.cpp')
-rw-r--r--indra/newview/gltf/animation.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/gltf/animation.cpp b/indra/newview/gltf/animation.cpp
index da6d02b356..d6a899ad4c 100644
--- a/indra/newview/gltf/animation.cpp
+++ b/indra/newview/gltf/animation.cpp
@@ -110,15 +110,15 @@ void Animation::Sampler::getFrameInfo(Asset& asset, F32 time, U32& frameIndex, F
{
if (time > mMaxTime)
{
- frameIndex = mFrameTimes.size() - 2;
+ frameIndex = (U32)mFrameTimes.size() - 2;
t = 1.0f;
return;
}
- frameIndex = mFrameTimes.size() - 2;
+ frameIndex = (U32)mFrameTimes.size() - 2;
t = 1.f;
- for (U32 i = 0; i < mFrameTimes.size() - 1; i++)
+ for (U32 i = 0; i < (U32)mFrameTimes.size() - 1; i++)
{
if (time >= mFrameTimes[i] && time < mFrameTimes[i + 1])
{