浏览代码

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

NathanSweet 11 年之前
父节点
当前提交
ad3fa6ea0e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      spine-libgdx/src/com/esotericsoftware/spine/SkeletonRendererDebug.java

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