mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-22 04:23:09 +00:00
Support proper checks for maya segment scale
This commit is contained in:
parent
7ba0eb7dcc
commit
91900d6aeb
5 changed files with 5 additions and 6 deletions
|
@ -191,8 +191,6 @@ namespace FirstPlugin
|
|||
b = skeleton.GetBone(node.Name);
|
||||
if (b == null) continue;
|
||||
|
||||
b.UseSegmentScaleCompensate = true;
|
||||
|
||||
Updated = true;
|
||||
|
||||
if (node.TranslateX.HasKeys)
|
||||
|
|
|
@ -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,
|
||||
});
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -460,6 +460,7 @@ namespace FirstPlugin
|
|||
|
||||
Text = bone.Name;
|
||||
parentIndex = bone.Parent;
|
||||
UseSegmentScaleCompensate = bone.SegmentScale;
|
||||
|
||||
if (bone.Translation != null)
|
||||
{
|
||||
|
|
|
@ -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; }
|
||||
|
|
Loading…
Reference in a new issue