mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-09 08:38:43 +08:00
oops. spaces to tabs
This commit is contained in:
parent
169ec15285
commit
0b86e3330a
@ -139,14 +139,14 @@ 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;
|
||||
}
|
||||
}
|
||||
ExposedList<ExposedList<Bone>> boneCache = this.boneCache;
|
||||
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;
|
||||
}
|
||||
}
|
||||
ExposedList<ExposedList<Bone>> boneCache = this.boneCache;
|
||||
int i = 0, last = boneCache.Count - 1;
|
||||
while (true) {
|
||||
ExposedList<Bone> updateBones = boneCache.Items[i];
|
||||
|
||||
@ -72,7 +72,7 @@ public class SkeletonAnimator : SkeletonRenderer, ISkeletonAnimation {
|
||||
return;
|
||||
|
||||
animationTable.Clear();
|
||||
clipNameTable.Clear();
|
||||
clipNameTable.Clear();
|
||||
|
||||
var data = skeletonDataAsset.GetSkeletonData(true);
|
||||
|
||||
@ -205,13 +205,13 @@ public class SkeletonAnimator : SkeletonRenderer, ISkeletonAnimation {
|
||||
}
|
||||
}
|
||||
|
||||
private string GetAnimationClipName(AnimationClip clip) {
|
||||
string clipName;
|
||||
if (!clipNameTable.TryGetValue(clip, out clipName)) {
|
||||
clipName = clip.name;
|
||||
clipNameTable.Add(clip, clipName);
|
||||
}
|
||||
private string GetAnimationClipName(AnimationClip clip) {
|
||||
string clipName;
|
||||
if (!clipNameTable.TryGetValue(clip, out clipName)) {
|
||||
clipName = clip.name;
|
||||
clipNameTable.Add(clip, clipName);
|
||||
}
|
||||
|
||||
return clipName;
|
||||
}
|
||||
return clipName;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user