mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-07 11:16:53 +08:00
[csharp] Fix and cleanup a few typos.
This commit is contained in:
parent
dced060658
commit
ece4e93118
@ -581,7 +581,7 @@ namespace Spine {
|
|||||||
}
|
}
|
||||||
|
|
||||||
float[] frames = this.frames;
|
float[] frames = this.frames;
|
||||||
if (time < frames[0]) {
|
if (time < frames[0]) { // Time is before first frame.
|
||||||
if (setupPose) {
|
if (setupPose) {
|
||||||
attachmentName = slot.data.attachmentName;
|
attachmentName = slot.data.attachmentName;
|
||||||
slot.Attachment = attachmentName == null ? null : skeleton.GetAttachment(slotIndex, attachmentName);
|
slot.Attachment = attachmentName == null ? null : skeleton.GetAttachment(slotIndex, attachmentName);
|
||||||
|
|||||||
@ -228,7 +228,7 @@ namespace Spine {
|
|||||||
if (rotateTimeline != null) {
|
if (rotateTimeline != null) {
|
||||||
ApplyRotateTimeline(rotateTimeline, skeleton, animationTime, alpha, setupPose, timelinesRotation, i << 1, firstFrame);
|
ApplyRotateTimeline(rotateTimeline, skeleton, animationTime, alpha, setupPose, timelinesRotation, i << 1, firstFrame);
|
||||||
} else {
|
} else {
|
||||||
if (setupPose) {
|
if (!setupPose) {
|
||||||
if (!attachments && timeline is AttachmentTimeline) continue;
|
if (!attachments && timeline is AttachmentTimeline) continue;
|
||||||
if (!drawOrder && timeline is DrawOrderTimeline) continue;
|
if (!drawOrder && timeline is DrawOrderTimeline) continue;
|
||||||
}
|
}
|
||||||
@ -236,7 +236,7 @@ namespace Spine {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QueueEvents(entry, animationTime);
|
QueueEvents(from, animationTime);
|
||||||
from.nextAnimationLast = animationTime;
|
from.nextAnimationLast = animationTime;
|
||||||
from.nextTrackLast = from.trackTime;
|
from.nextTrackLast = from.trackTime;
|
||||||
|
|
||||||
|
|||||||
@ -82,7 +82,7 @@ namespace Spine {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (updateAabb) {
|
if (updateAabb) {
|
||||||
aabbCompute();
|
AabbCompute();
|
||||||
} else {
|
} else {
|
||||||
minX = int.MinValue;
|
minX = int.MinValue;
|
||||||
minY = int.MinValue;
|
minY = int.MinValue;
|
||||||
@ -91,7 +91,7 @@ namespace Spine {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void aabbCompute () {
|
private void AabbCompute () {
|
||||||
float minX = int.MaxValue, minY = int.MaxValue, maxX = int.MinValue, maxY = int.MinValue;
|
float minX = int.MaxValue, minY = int.MaxValue, maxX = int.MinValue, maxY = int.MinValue;
|
||||||
ExposedList<Polygon> polygons = Polygons;
|
ExposedList<Polygon> polygons = Polygons;
|
||||||
for (int i = 0, n = polygons.Count; i < n; i++) {
|
for (int i = 0, n = polygons.Count; i < n; i++) {
|
||||||
@ -204,7 +204,7 @@ namespace Spine {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Polygon getPolygon (BoundingBoxAttachment attachment) {
|
public Polygon GetPolygon (BoundingBoxAttachment attachment) {
|
||||||
int index = BoundingBoxes.IndexOf(attachment);
|
int index = BoundingBoxes.IndexOf(attachment);
|
||||||
return index == -1 ? null : Polygons.Items[index];
|
return index == -1 ? null : Polygons.Items[index];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user