Browse Source

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

zz85 13 years ago
parent
commit
4e58654eba
1 changed files with 1 additions and 1 deletions
  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;
 		else if ( p.x < minX ) minX = p.x;
 
 
 		if ( p.y > maxY ) maxY = p.y;
 		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 );
 		sum.addSelf( p.x, p.y );