Преглед на файлове

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);
 					shapes.setColor(attachmentLineColor);
 					hullLength = hullLength / 2 * 5;
 					hullLength = hullLength / 2 * 5;
 					float lastX = vertices[hullLength - 5], lastY = vertices[hullLength - 4];
 					float lastX = vertices[hullLength - 5], lastY = vertices[hullLength - 4];