mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-08-20 00:49:25 +08:00
Fix renderable transform multiply
This commit is contained in:
parent
9d76f2c6c4
commit
4bc8561a6d
@ -300,7 +300,7 @@ namespace CodeWalker.Rendering
|
|||||||
{
|
{
|
||||||
Matrix ptrans = (parentind < modeltransforms.Length) ? modeltransforms[parentind] : Matrix.Identity;
|
Matrix ptrans = (parentind < modeltransforms.Length) ? modeltransforms[parentind] : Matrix.Identity;
|
||||||
ptrans.Column4 = Vector4.UnitW;
|
ptrans.Column4 = Vector4.UnitW;
|
||||||
trans = Matrix.Multiply(ptrans, trans);
|
trans = Matrix.Multiply(trans, ptrans);
|
||||||
parentind = ((pinds != null) && (parentind < pinds.Length)) ? pinds[parentind] : (short)-1;
|
parentind = ((pinds != null) && (parentind < pinds.Length)) ? pinds[parentind] : (short)-1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user