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); } } }
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); } }
public static void Write(BinaryWriter writer, SoftwareObjectArmature softwareObjectArmature) { writer.Write(softwareObjectArmature.Armature.Name); }