From 50433bb4a0b03fca27eb47a704ac08e4c33519b9 Mon Sep 17 00:00:00 2001 From: NathanSweet Date: Mon, 4 Jul 2016 00:42:40 +0200 Subject: [PATCH] [spine-csharp] Minor clean up. --- spine-csharp/src/Skeleton.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spine-csharp/src/Skeleton.cs b/spine-csharp/src/Skeleton.cs index ca4c04ee3..03a04004d 100644 --- a/spine-csharp/src/Skeleton.cs +++ b/spine-csharp/src/Skeleton.cs @@ -79,7 +79,7 @@ namespace Spine { foreach (BoneData boneData in data.bones) { Bone bone; if (boneData.parent == null) { - bone = new Bone (boneData, this, null); + bone = new Bone(boneData, this, null); } else { Bone parent = bones.Items[boneData.parent.index]; bone = new Bone (boneData, this, parent); @@ -130,13 +130,13 @@ namespace Spine { int ikCount = ikConstraints.Count; for (int i = 0, level, n = ikCount; i < n; i++) { IkConstraint ik = ikConstraints.Items[i]; - Bone bone = ik.bones.Items[0].Parent; + Bone bone = ik.bones.Items[0].parent; for (level = 0; bone != null; level++) - bone = bone.Parent; + bone = bone.parent; ik.level = level; } for (int i = 1, ii; i < ikCount; i++) { - IkConstraint ik = ikConstraints.Items [i]; + IkConstraint ik = ikConstraints.Items[i]; int level = ik.level; for (ii = i - 1; ii >= 0; ii--) { IkConstraint other = ikConstraints.Items[ii]; @@ -151,7 +151,7 @@ namespace Spine { SortBone(target); ExposedList constrained = constraint.bones; - Bone parent = constrained.Items [0]; + Bone parent = constrained.Items[0]; SortBone(parent); updateCache.Add(constraint);