mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +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>
|
||||
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];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user