Check if x has been incremented to OR above the width.

Fixes a bug with the convex hull calculation where the bounds could not
be calculated for certain costumes with non-integer sizes.
This commit is contained in:
Paul Kaplan
2017-12-01 08:56:12 -05:00
parent 72af98d2cf
commit 8a1f3306b7

View File

@@ -1205,7 +1205,7 @@ class RenderWebGL extends EventEmitter {
// If x is equal to the width there are no touchable points in the
// skin. Nothing we can add to L. And looping for R would find the
// same thing.
if (x === width) {
if (x >= width) {
continue;
}
// Decrement ll until Q is clockwise (CCW returns negative) from the