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

View File

@ -917,22 +917,17 @@ 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)
return Vector3.TransformPosition(position, trans);
else
return Vector3.TransformNormal(position, trans);
} }
if (IsPos)
return Vector3.TransformPosition(position, trans);
else
return Vector3.TransformNormal(position, trans);
} }
catch catch
{ {