Browse Source

Merge remote-tracking branch 'Knectar/dev' into dev

Mr.doob 14 years ago
parent
commit
fb4f5f8467
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/extras/geometries/OctahedronGeometry.js

+ 1 - 1
src/extras/geometries/OctahedronGeometry.js

@@ -13,7 +13,7 @@ THREE.OctahedronGeometry = function ( radius, detail ) {
 
 
 	THREE.Geometry.call( this );
 	THREE.Geometry.call( this );
 
 
-	detail = isFinite(detail) ? detail : 3; // allow a zero value
+	detail = detail || 0;
 
 
 	var that = this; // ugly scope hack
 	var that = this; // ugly scope hack