Fix IQM root joint backlerp when joint number is more than 0

Backlerp for root joint (joint with no parent) was always applied to
joint 0. This is an issue when a model has multiple root joints.
This commit is contained in:
Zack Middleton 2018-07-27 17:40:09 -05:00
parent 39e2113c73
commit 6c3d92133d
2 changed files with 2 additions and 2 deletions

View file

@ -983,7 +983,7 @@ static void ComputePoseMats( iqmData_t *data, int frame, int oldframe,
} else { } else {
InterpolateMatrix( mat1 + 12*i, mat2 + 12*i, InterpolateMatrix( mat1 + 12*i, mat2 + 12*i,
backlerp, mat ); backlerp, mat + 12*i );
} }
} }
} }

View file

@ -987,7 +987,7 @@ static void ComputePoseMats( iqmData_t *data, int frame, int oldframe,
} else { } else {
InterpolateMatrix( mat1 + 12*i, mat2 + 12*i, InterpolateMatrix( mat1 + 12*i, mat2 + 12*i,
backlerp, mat ); backlerp, mat + 12*i );
} }
} }
} }