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 committed 2018-07-27 17:40:09 -05:00
1 parent 39e2113c73
commit 6c3d92133d
2 files changed
+2 -2

No files matched your search

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