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:
1 parent
39e2113c73
commit
6c3d92133d
2 files changed
+2
-2
No files matched your search
@@ -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 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user