Răsfoiți Sursa

Box3: Explicit check.

Mr.doob 9 ani în urmă
părinte
comite
536bce1781
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      src/math/Box3.js

+ 1 - 1
src/math/Box3.js

@@ -116,7 +116,7 @@ THREE.Box3.prototype = {
 
 					}
 
-					if ( ! geometry.boundingBox.isEmpty() ) {
+					if ( geometry.boundingBox.isEmpty() === false ) {
 
 						box.copy( geometry.boundingBox );
 						box.applyMatrix4( node.matrixWorld );