mirror of
https://github.com/4sval/FModel.git
synced 2026-03-21 17:24:26 -05:00
26 lines
705 B
C#
26 lines
705 B
C#
namespace FModel.Views.Snooper.Animations;
|
|
|
|
public class Bone
|
|
{
|
|
public readonly int Index;
|
|
public readonly int ParentIndex;
|
|
public readonly Transform Rest;
|
|
public string LoweredParentName;
|
|
|
|
public int SkeletonIndex = -1;
|
|
public bool IsAnimated;
|
|
|
|
public Bone(int i, int p, Transform t)
|
|
{
|
|
Index = i;
|
|
ParentIndex = p;
|
|
Rest = t;
|
|
}
|
|
|
|
public bool IsRoot => Index == 0 && ParentIndex == -1 && string.IsNullOrEmpty(LoweredParentName);
|
|
public bool IsMapped => SkeletonIndex > -1;
|
|
public bool IsNative => Index == SkeletonIndex;
|
|
|
|
public override string ToString() => $"Mesh Ref '{Index}' is Skel Ref '{SkeletonIndex}' ({IsAnimated})";
|
|
}
|