Fixed debug drawing when non-essential data was not exported.

This commit is contained in:
NathanSweet 2014-04-23 15:11:59 +02:00
parent 89c4a57809
commit ad3fa6ea0e

View File

@ -137,7 +137,7 @@ public class SkeletonRendererDebug {
);
}
}
if (drawMeshHull) {
if (drawMeshHull && hullLength > 0) {
shapes.setColor(attachmentLineColor);
hullLength = hullLength / 2 * 5;
float lastX = vertices[hullLength - 5], lastY = vertices[hullLength - 4];