public void CopyBaseValues(SkeletonFile from) { this.Depth = from.Depth + 1; if (from.BoneNames == null) { return; } if (this.BoneNames == null) { this.BoneNames = new Dictionary <string, string>(); } foreach ((string key, string name) in from.BoneNames) { if (this.BoneNames.ContainsKey(key)) { continue; } this.BoneNames.Add(key, name); } if (this.Parenting == null) { this.Parenting = from.Parenting; } }
public void CopyBaseValues(SkeletonFile from) { this.Depth = from.Depth + 1; if (this.Age == null) { this.Age = from.Age; } if (from.BoneNames == null) { return; } if (this.ModelTypes == null) { this.ModelTypes = from.ModelTypes; } if (this.BoneNames == null) { this.BoneNames = new Dictionary <string, string>(); } foreach ((string key, string name) in from.BoneNames) { if (this.BoneNames.ContainsKey(key)) { continue; } this.BoneNames.Add(key, name); } if (from.Parenting != null) { if (this.Parenting == null) { this.Parenting = new Dictionary <string, string>(); } foreach ((string bone, string parent) in from.Parenting) { if (this.Parenting.ContainsKey(bone)) { continue; } this.Parenting.Add(bone, parent); } } }