Cleanup
This commit is contained in:
parent
b00a3805f1
commit
0fef2f07e4
@ -917,23 +917,18 @@ namespace Bfres.Structs
|
||||
|
||||
var bone = skel.bones[skel.Node_Array[BoneIndex]];
|
||||
trans = bone.invert;
|
||||
|
||||
if (IsPos)
|
||||
return Vector3.TransformPosition(position, trans);
|
||||
else
|
||||
return Vector3.TransformNormal(position, trans);
|
||||
}
|
||||
else
|
||||
{
|
||||
var bone = skel.bones[BoneIndex];
|
||||
trans = bone.invert;
|
||||
}
|
||||
|
||||
if (IsPos)
|
||||
return Vector3.TransformPosition(position, trans);
|
||||
else
|
||||
return Vector3.TransformNormal(position, trans);
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
STConsole.WriteLine("Failed to bind bone to mesh " + Text, System.Drawing.Color.Red);
|
||||
|
Loading…
Reference in New Issue
Block a user