mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Clean up.
This commit is contained in:
parent
e834982b49
commit
71b3484062
@ -531,11 +531,10 @@ public class Skeleton {
|
|||||||
Slot slot = drawOrder.get(i);
|
Slot slot = drawOrder.get(i);
|
||||||
float[] vertices = null;
|
float[] vertices = null;
|
||||||
Attachment attachment = slot.attachment;
|
Attachment attachment = slot.attachment;
|
||||||
if (attachment instanceof RegionAttachment) {
|
if (attachment instanceof RegionAttachment)
|
||||||
vertices = ((RegionAttachment)attachment).updateWorldVertices(slot, false);
|
vertices = ((RegionAttachment)attachment).updateWorldVertices(slot, false);
|
||||||
} else if (attachment instanceof MeshAttachment) {
|
else if (attachment instanceof MeshAttachment) //
|
||||||
vertices = ((MeshAttachment)attachment).updateWorldVertices(slot, true);
|
vertices = ((MeshAttachment)attachment).updateWorldVertices(slot, true);
|
||||||
}
|
|
||||||
if (vertices != null) {
|
if (vertices != null) {
|
||||||
for (int ii = 0, nn = vertices.length; ii < nn; ii += 5) {
|
for (int ii = 0, nn = vertices.length; ii < nn; ii += 5) {
|
||||||
float x = vertices[ii], y = vertices[ii + 1];
|
float x = vertices[ii], y = vertices[ii + 1];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user