1
0
mirror of synced 2024-09-23 19:18:21 +02:00

Support proper checks for maya segment scale

This commit is contained in:
KillzXGaming 2022-05-25 17:03:19 -04:00
parent 7ba0eb7dcc
commit 91900d6aeb
5 changed files with 5 additions and 6 deletions

View File

@ -191,8 +191,6 @@ namespace FirstPlugin
b = skeleton.GetBone(node.Name);
if (b == null) continue;
b.UseSegmentScaleCompensate = true;
Updated = true;
if (node.TranslateX.HasKeys)

View File

@ -249,7 +249,7 @@ namespace FirstPlugin
Translation = ConvertVec3(bone.Translation),
RadiusEnd = ConvertVec3(bone.RadiusEnd),
RadiusStart = ConvertVec3(bone.RadiusStart),
Visible = bone.Visible,
SegmentScale = bone.Visible,
Zero = bone.Zero,
RigidCheck = rigidData,
});

View File

@ -379,7 +379,7 @@ namespace FirstPlugin
bone.BoneType = 0;
bone.Parent = genericBone.parentIndex;
bone.Zero = 0;
bone.Visible = false;
bone.SegmentScale = false;
bone.Scale = new GFMDLStructs.Vector3(scale.X, scale.Y, scale.Z);
bone.Rotation = new GFMDLStructs.Vector3(rot.X, rot.Y, rot.Z);
bone.Translation = new GFMDLStructs.Vector3(trans.X, trans.Y, trans.Z);
@ -569,7 +569,7 @@ namespace FirstPlugin
bone.BoneType = 0;
bone.Parent = 0;
bone.Zero = 0;
bone.Visible = false;
bone.SegmentScale = false;
bone.Scale = new GFMDLStructs.Vector3(1, 1, 1);
bone.Rotation = new GFMDLStructs.Vector3(0, 0, 0);
bone.Translation = new GFMDLStructs.Vector3(0,0,0);

View File

@ -460,6 +460,7 @@ namespace FirstPlugin
Text = bone.Name;
parentIndex = bone.Parent;
UseSegmentScaleCompensate = bone.SegmentScale;
if (bone.Translation != null)
{

View File

@ -201,7 +201,7 @@ namespace FirstPlugin.GFMDLStructs
public uint BoneType { get; set; }
public int Parent { get; set; }
public uint Zero { get; set; }
public bool Visible { get; set; }
public bool SegmentScale { get; set; }
public Vector3 Scale { get; set; }
public Vector3 Rotation { get; set; }