Clean up.

This commit is contained in:
NathanSweet 2016-06-22 12:55:36 +02:00
parent e834982b49
commit 71b3484062

View File

@ -531,11 +531,10 @@ public class Skeleton {
Slot slot = drawOrder.get(i);
float[] vertices = null;
Attachment attachment = slot.attachment;
if (attachment instanceof RegionAttachment) {
if (attachment instanceof RegionAttachment)
vertices = ((RegionAttachment)attachment).updateWorldVertices(slot, false);
} else if (attachment instanceof MeshAttachment) {
else if (attachment instanceof MeshAttachment) //
vertices = ((MeshAttachment)attachment).updateWorldVertices(slot, true);
}
if (vertices != null) {
for (int ii = 0, nn = vertices.length; ii < nn; ii += 5) {
float x = vertices[ii], y = vertices[ii + 1];