mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2025-02-16 22:08:26 +00:00
Apply bone transforms for bfres to better optmize custom bone sets
This commit is contained in:
parent
af8a8f17f6
commit
ae2e9f2b2f
1 changed files with 4 additions and 4 deletions
|
@ -802,18 +802,18 @@ namespace Bfres.Structs
|
|||
|
||||
public void SetTransforms()
|
||||
{
|
||||
/* if (BoneU != null)
|
||||
if (BoneU != null)
|
||||
{
|
||||
BoneU.TransformRotateZero = BoneU.Rotation == Syroot.Maths.Vector4F.Zero;
|
||||
BoneU.TransformRotateZero = BoneU.Rotation == new Syroot.Maths.Vector4F(0,0,0,1);
|
||||
BoneU.TransformScaleOne = BoneU.Scale == Syroot.Maths.Vector3F.One;
|
||||
BoneU.TransformTranslateZero = BoneU.Position == Syroot.Maths.Vector3F.Zero;
|
||||
}
|
||||
else
|
||||
{
|
||||
Bone.TransformRotateZero = Bone.Rotation == Syroot.Maths.Vector4F.Zero;
|
||||
Bone.TransformRotateZero = Bone.Rotation == new Syroot.Maths.Vector4F(0, 0, 0, 1);
|
||||
Bone.TransformScaleOne = Bone.Scale == Syroot.Maths.Vector3F.One;
|
||||
Bone.TransformTranslateZero = Bone.Position == Syroot.Maths.Vector3F.Zero;
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
public ResFile GetResFile()
|
||||
|
|
Loading…
Add table
Reference in a new issue