Fix renderable transform multiply

This commit is contained in:
Disquse 2023-04-08 22:35:54 +03:00
parent 9d76f2c6c4
commit 4bc8561a6d
No known key found for this signature in database
GPG Key ID: A5327864BAB03F8C

View File

@ -300,7 +300,7 @@ namespace CodeWalker.Rendering
{
Matrix ptrans = (parentind < modeltransforms.Length) ? modeltransforms[parentind] : Matrix.Identity;
ptrans.Column4 = Vector4.UnitW;
trans = Matrix.Multiply(ptrans, trans);
trans = Matrix.Multiply(trans, ptrans);
parentind = ((pinds != null) && (parentind < pinds.Length)) ? pinds[parentind] : (short)-1;
}
}