Browse Source

Octahedron subdivisions to default to 0.

Daniel 14 years ago
parent
commit
c783410a1a
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