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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user