mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-10 17:18:44 +08:00
[spine-csharp] Minor clean up.
This commit is contained in:
parent
50433bb4a0
commit
5c9b1f30eb
@ -164,7 +164,7 @@ namespace Spine {
|
||||
for (int i = 0, n = pathConstraints.Count; i < n; i++) {
|
||||
PathConstraint constraint = pathConstraints.Items[i];
|
||||
|
||||
Slot slot = constraint.Target;
|
||||
Slot slot = constraint.target;
|
||||
int slotIndex = slot.data.index;
|
||||
Bone slotBone = slot.bone;
|
||||
if (skin != null) SortPathConstraintAttachment(skin, slotIndex, slotBone);
|
||||
@ -249,9 +249,9 @@ namespace Spine {
|
||||
|
||||
/// <summary>Updates the world transform for each bone and applies constraints.</summary>
|
||||
public void UpdateWorldTransform () {
|
||||
var updateCache = this.updateCache;
|
||||
var updateItems = this.updateCache.Items;
|
||||
for (int i = 0, n = updateCache.Count; i < n; i++)
|
||||
updateCache.Items[i].Update();
|
||||
updateItems[i].Update();
|
||||
}
|
||||
|
||||
/// <summary>Sets the bones, constraints, and slots to their setup pose values.</summary>
|
||||
@ -283,9 +283,9 @@ namespace Spine {
|
||||
constraint.shearMix = data.shearMix;
|
||||
}
|
||||
|
||||
var pathConstraints = this.pathConstraints;
|
||||
var pathConstraintItems = this.pathConstraints.Items;
|
||||
for (int i = 0, n = pathConstraints.Count; i < n; i++) {
|
||||
PathConstraint constraint = pathConstraints.Items[i];
|
||||
PathConstraint constraint = pathConstraintItems[i];
|
||||
PathConstraintData data = constraint.data;
|
||||
constraint.position = data.position;
|
||||
constraint.spacing = data.spacing;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user