[rmodels] Added example for animation blending and fixed wrap issue for blend factor
Signed-off-by: Kirandeep-Singh-Khehra <kirandeepsinghkhehra@gmail.com>
This commit is contained in:
parent
8808a3958a
commit
ec02d80868
1 changed files with 139 additions and 1 deletions
|
|
@ -2315,7 +2315,7 @@ void UpdateModelAnimationBonesWithBlending(Model model, ModelAnimation animA, in
|
|||
{
|
||||
if ((animA.frameCount > 0) && (animA.bones != NULL) && (animA.framePoses != NULL) &&
|
||||
(animB.frameCount > 0) && (animB.bones != NULL) && (animB.framePoses != NULL) &&
|
||||
(blendFactor >= 0.0f) && (blendFactor <= 1.0))
|
||||
(blendFactor >= 0.0f) && (blendFactor <= 1.0f))
|
||||
{
|
||||
frameA = frameA % animA.frameCount;
|
||||
frameB = frameB % animB.frameCount;
|
||||
|
|
|
|||
Loading…
Reference in a new issue