ソースを参照

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

NathanSweet 11 年 前
コミット
ad3fa6ea0e

+ 1 - 1
spine-libgdx/src/com/esotericsoftware/spine/SkeletonRendererDebug.java

@@ -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];