@ -52,6 +52,23 @@ int AnimationInfo::GetFrameToUseForRendering() const
returnabsoluteAnimationFrame;
}
floatAnimationInfo::GetAnimationProgress()const
{
if(RelevantFramesForDistributing<=0){
// This logic is used if animation distrubtion is not active (see GetFrameToUseForRendering).
// In this case the variables calculated with animation distribution are not initialized and we have to calculate them on the fly with the given informations.