Browse Source

BufferGeometry: More useful warnings.

Mr.doob 10 years ago
parent
commit
e8fec4fe4f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/core/BufferGeometry.js

+ 2 - 2
src/core/BufferGeometry.js

@@ -491,7 +491,7 @@ THREE.BufferGeometry.prototype = {
 
 
 			if ( isNaN( this.boundingBox.min.x ) || isNaN( this.boundingBox.min.y ) || isNaN( this.boundingBox.min.z ) ) {
 			if ( isNaN( this.boundingBox.min.x ) || isNaN( this.boundingBox.min.y ) || isNaN( this.boundingBox.min.z ) ) {
 
 
-				THREE.error( 'THREE.BufferGeometry.computeBoundingBox: Computed min/max have NaN values. The "position" attribute is likely to have NaN values.' );
+				THREE.error( 'THREE.BufferGeometry.computeBoundingBox: Computed min/max have NaN values. The "position" attribute is likely to have NaN values.', this );
 
 
 			}
 			}
 
 
@@ -545,7 +545,7 @@ THREE.BufferGeometry.prototype = {
 
 
 				if ( isNaN( this.boundingSphere.radius ) ) {
 				if ( isNaN( this.boundingSphere.radius ) ) {
 
 
-					THREE.error( 'THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.' );
+					THREE.error( 'THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.', this );
 
 
 				}
 				}