fix regression

This commit is contained in:
ZimM 2015-02-26 17:36:52 +02:00
parent 9b6553fdb5
commit 990d8d3016

View File

@ -139,14 +139,12 @@ namespace Spine {
/// <summary>Updates the world transform for each bone and applies IK constraints.</summary>
public void UpdateWorldTransform () {
ExposedList<Bone> bones = this.bones;
ExposedList<IkConstraint> ikConstraints = this.ikConstraints;
if (ikConstraints.Count > 0) {
for (int ii = 0, nn = bones.Count; ii < nn; ii++) {
Bone bone = bones.Items[ii];
bone.rotationIK = bone.rotation;
}
for (int ii = 0, nn = bones.Count; ii < nn; ii++) {
Bone bone = bones.Items[ii];
bone.rotationIK = bone.rotation;
}
ExposedList<ExposedList<Bone>> boneCache = this.boneCache;
ExposedList<IkConstraint> ikConstraints = this.ikConstraints;
int i = 0, last = boneCache.Count - 1;
while (true) {
ExposedList<Bone> updateBones = boneCache.Items[i];