mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
fix regression
This commit is contained in:
parent
9b6553fdb5
commit
990d8d3016
@ -139,14 +139,12 @@ namespace Spine {
|
|||||||
/// <summary>Updates the world transform for each bone and applies IK constraints.</summary>
|
/// <summary>Updates the world transform for each bone and applies IK constraints.</summary>
|
||||||
public void UpdateWorldTransform () {
|
public void UpdateWorldTransform () {
|
||||||
ExposedList<Bone> bones = this.bones;
|
ExposedList<Bone> bones = this.bones;
|
||||||
ExposedList<IkConstraint> ikConstraints = this.ikConstraints;
|
for (int ii = 0, nn = bones.Count; ii < nn; ii++) {
|
||||||
if (ikConstraints.Count > 0) {
|
Bone bone = bones.Items[ii];
|
||||||
for (int ii = 0, nn = bones.Count; ii < nn; ii++) {
|
bone.rotationIK = bone.rotation;
|
||||||
Bone bone = bones.Items[ii];
|
|
||||||
bone.rotationIK = bone.rotation;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
ExposedList<ExposedList<Bone>> boneCache = this.boneCache;
|
ExposedList<ExposedList<Bone>> boneCache = this.boneCache;
|
||||||
|
ExposedList<IkConstraint> ikConstraints = this.ikConstraints;
|
||||||
int i = 0, last = boneCache.Count - 1;
|
int i = 0, last = boneCache.Count - 1;
|
||||||
while (true) {
|
while (true) {
|
||||||
ExposedList<Bone> updateBones = boneCache.Items[i];
|
ExposedList<Bone> updateBones = boneCache.Items[i];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user