GRIM: EMI: Replace function with simple math operation

This commit is contained in:
Paweł Kołodziejski 2021-12-26 16:47:50 +01:00
parent 3788bf1e1c
commit 4d62b275e0
No known key found for this signature in database
GPG Key ID: 0BDADC9E74440FF7

View File

@ -248,7 +248,7 @@ void EMIModel::prepareForRender() {
const Math::Matrix4 &bindPose = _skeleton->_joints[jointIndex]._absMatrix;
Math::Vector3d vert = _vertices[boneVert];
bindPose.inverseTranslate(&vert);
vert -= bindPose.getPosition();
bindPose.inverseRotate(&vert);
jointMatrix.transform(&vert, true);
_drawVertices[boneVert] += vert * _boneInfos[i]._weight;