Reign.Video.Abstraction.SoftwareObjectArmature.SoftwareObjectArmature C# (CSharp) Method

SoftwareObjectArmature() public method

public SoftwareObjectArmature ( SoftwareModel model, RMX_Object o ) : System.Collections.Generic
model SoftwareModel
o RMX_Object
return System.Collections.Generic
        public SoftwareObjectArmature(SoftwareModel model, RMX_Object o)
            : base(model, o)
        {
            // find armature
            foreach (var armature in model.Armatures)
            {
                if (o.Armature.Name == armature.Name)
                {
                    Armature = armature;
                    break;
                }
            }
            if (Armature == null) Debug.ThrowError("SoftwareObjectArmature", "Failed to find Armature: " + o.Armature.Name);
        }
SoftwareObjectArmature