1
0
mirror of synced 2024-12-02 02:57:23 +01:00
This commit is contained in:
KillzXGaming 2019-03-25 19:11:02 -04:00
parent b00a3805f1
commit 0fef2f07e4

View File

@ -917,23 +917,18 @@ namespace Bfres.Structs
var bone = skel.bones[skel.Node_Array[BoneIndex]]; var bone = skel.bones[skel.Node_Array[BoneIndex]];
trans = bone.invert; trans = bone.invert;
if (IsPos)
return Vector3.TransformPosition(position, trans);
else
return Vector3.TransformNormal(position, trans);
} }
else else
{ {
var bone = skel.bones[BoneIndex]; var bone = skel.bones[BoneIndex];
trans = bone.invert; trans = bone.invert;
}
if (IsPos) if (IsPos)
return Vector3.TransformPosition(position, trans); return Vector3.TransformPosition(position, trans);
else else
return Vector3.TransformNormal(position, trans); return Vector3.TransformNormal(position, trans);
} }
}
catch catch
{ {
STConsole.WriteLine("Failed to bind bone to mesh " + Text, System.Drawing.Color.Red); STConsole.WriteLine("Failed to bind bone to mesh " + Text, System.Drawing.Color.Red);