mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-05 14:47:22 +08:00
Merge pull request #192 from Disquse/fix-transform-multiply
Fix renderable transform multiply
This commit is contained in:
commit
eddd2c74a5
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user