Explorar o código

CurvePath.getBoundingBox() fix by @AnthorNet for #1811

zz85 %!s(int64=13) %!d(string=hai) anos
pai
achega
4e58654eba
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/extras/core/CurvePath.js

+ 1 - 1
src/extras/core/CurvePath.js

@@ -159,7 +159,7 @@ THREE.CurvePath.prototype.getBoundingBox = function () {
 		else if ( p.x < minX ) minX = p.x;
 
 		if ( p.y > maxY ) maxY = p.y;
-		else if ( p.y < maxY ) minY = p.y;
+		else if ( p.y < minY ) minY = p.y;
 
 		sum.addSelf( p.x, p.y );