Browse Source

PlaneGeometry inherits from Geometry

James Baicoianu 11 years ago
parent
commit
c154b7c88e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/extras/geometries/PlaneGeometry.js

+ 2 - 1
src/extras/geometries/PlaneGeometry.js

@@ -81,8 +81,9 @@ THREE.PlaneGeometry = function ( width, height, widthSegments, heightSegments )
 
 
 	}
 	}
 
 
+	THREE.Geometry.call( this );
 	THREE.IndexedGeometry2.call( this, indices, vertices, normals, uvs );
 	THREE.IndexedGeometry2.call( this, indices, vertices, normals, uvs );
 
 
 };
 };
 
 
-THREE.PlaneGeometry.prototype = Object.create( THREE.IndexedGeometry2.prototype );
+THREE.PlaneGeometry.prototype = Object.create( THREE.Geometry.prototype );