mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[spine-csharp] Minor clean up.
This commit is contained in:
parent
f1730b2b38
commit
50433bb4a0
@ -130,9 +130,9 @@ namespace Spine {
|
|||||||
int ikCount = ikConstraints.Count;
|
int ikCount = ikConstraints.Count;
|
||||||
for (int i = 0, level, n = ikCount; i < n; i++) {
|
for (int i = 0, level, n = ikCount; i < n; i++) {
|
||||||
IkConstraint ik = ikConstraints.Items[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++)
|
for (level = 0; bone != null; level++)
|
||||||
bone = bone.Parent;
|
bone = bone.parent;
|
||||||
ik.level = level;
|
ik.level = level;
|
||||||
}
|
}
|
||||||
for (int i = 1, ii; i < ikCount; i++) {
|
for (int i = 1, ii; i < ikCount; i++) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user