mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
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:
parent
39e2113c73
commit
6c3d92133d
2 changed files with 2 additions and 2 deletions
|
@ -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 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue