Fixed bug where keyframes of animation clips are not interpolated
This commit is contained in:
parent
b9fcdc43d4
commit
3e23f08aa8
|
@ -59,13 +59,8 @@ namespace SHADE
|
||||||
else
|
else
|
||||||
return nextKeyFrame->Data;
|
return nextKeyFrame->Data;
|
||||||
}
|
}
|
||||||
// At the front, so no prior key frames
|
|
||||||
else if (nextKeyFrame != keyframes.end())
|
|
||||||
{
|
|
||||||
return nextKeyFrame->Data;
|
|
||||||
}
|
|
||||||
// At the back, so no keyframes will follow
|
// At the back, so no keyframes will follow
|
||||||
else
|
else if (nextKeyFrame == keyframes.end())
|
||||||
{
|
{
|
||||||
return firstKeyFrame->Data;
|
return firstKeyFrame->Data;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue