Ejemplo n.º 1
0
        internal void linkObjects(RMX_Object o)
        {
            // find parent
            if (!string.IsNullOrEmpty(o.Parent))
            {
                foreach (var parent in Model.Objects)
                {
                    if (o.Parent == parent.Name)
                    {
                        Parent = parent;
                        break;
                    }
                }
                if (Parent == null)
                {
                    Debug.ThrowError("SoftwareObject", "Failed to find Parent: " + o.Parent);
                }
            }

            // find armature object
            if (o.ArmatureObject != null)
            {
                foreach (var action in Model.Objects)
                {
                    if (o.ArmatureObject.Name == action.Name)
                    {
                        ArmatureObject = (SoftwareObjectArmature)action;
                        break;
                    }
                }
                if (ArmatureObject == null)
                {
                    Debug.ThrowError("SoftwareObject", "Failed to find ArmatureObject: " + o.ArmatureObject.Name);
                }
            }
        }
Ejemplo n.º 2
0
        internal void linkObjects(RMX_Object o)
        {
            // find parent
            if (!string.IsNullOrEmpty(o.Parent))
            {
                foreach (var parent in Model.Objects)
                {
                    if (o.Parent == parent.Name)
                    {
                        Parent = parent;
                        break;
                    }
                }
                if (Parent == null) Debug.ThrowError("SoftwareObject", "Failed to find Parent: " + o.Parent);
            }

            // find armature object
            if (o.ArmatureObject != null)
            {
                foreach (var action in Model.Objects)
                {
                    if (o.ArmatureObject.Name == action.Name)
                    {
                        ArmatureObject = (SoftwareObjectArmature)action;
                        break;
                    }
                }
                if (ArmatureObject == null) Debug.ThrowError("SoftwareObject", "Failed to find ArmatureObject: " + o.ArmatureObject.Name);
            }
        }
Ejemplo n.º 3
0
 public static void Write(BinaryWriter writer, SoftwareObjectArmature softwareObjectArmature)
 {
     writer.Write(softwareObjectArmature.Armature.Name);
 }
Ejemplo n.º 4
0
 public static void Write(BinaryWriter writer, SoftwareObjectArmature softwareObjectArmature)
 {
     writer.Write(softwareObjectArmature.Armature.Name);
 }