[Scummvm-git-logs] scummvm master -> 4d62b275e0793294ccbdd85f936e9889aafdbd2d
aquadran
noreply at scummvm.org
Sun Dec 26 15:47:56 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
4d62b275e0 GRIM: EMI: Replace function with simple math operation
Commit: 4d62b275e0793294ccbdd85f936e9889aafdbd2d
https://github.com/scummvm/scummvm/commit/4d62b275e0793294ccbdd85f936e9889aafdbd2d
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2021-12-26T16:47:50+01:00
Commit Message:
GRIM: EMI: Replace function with simple math operation
Changed paths:
engines/grim/emi/modelemi.cpp
diff --git a/engines/grim/emi/modelemi.cpp b/engines/grim/emi/modelemi.cpp
index be03b3add9..116a3cda26 100644
--- a/engines/grim/emi/modelemi.cpp
+++ b/engines/grim/emi/modelemi.cpp
@@ -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;
More information about the Scummvm-git-logs
mailing list