소스 검색

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