More fixes for local transform errors
This commit is contained in:
parent
9c567dc89c
commit
e50666be9e
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1023,10 +1023,9 @@ namespace Bfres.Structs
|
||||
}
|
||||
|
||||
var bone = skel.bones[skel.Node_Array[BoneIndex]];
|
||||
trans = bone.invert;
|
||||
|
||||
if (trans.Determinant != 0)
|
||||
trans = bone.invert;
|
||||
else
|
||||
if (trans.Determinant == 0)
|
||||
{
|
||||
STConsole.WriteLine($"Determinant for bone transform is 0 to bind bone to mesh {Text} {BoneIndex} ", System.Drawing.Color.Red);
|
||||
return position;
|
||||
@ -1035,10 +1034,9 @@ namespace Bfres.Structs
|
||||
else
|
||||
{
|
||||
var bone = skel.bones[BoneIndex];
|
||||
trans = bone.invert;
|
||||
|
||||
if (trans.Determinant != 0)
|
||||
trans = bone.invert;
|
||||
else
|
||||
if (trans.Determinant == 0)
|
||||
{
|
||||
STConsole.WriteLine($"Determinant for bone transform is 0 to bind bone to mesh {Text} {BoneIndex} ", System.Drawing.Color.Red);
|
||||
return position;
|
||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user