Explorar o código

Updated CircleGeometry to the new instancing pattern.

Mr.doob %!s(int64=13) %!d(string=hai) anos
pai
achega
6b87d85477
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      src/extras/geometries/CircleGeometry.js

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

@@ -50,5 +50,4 @@ THREE.CircleGeometry = function ( radius, segments, thetaStart, thetaLength ) {
 
 };
 
-THREE.CircleGeometry.prototype = new THREE.Geometry();
-THREE.CircleGeometry.prototype.constructor = THREE.CircleGeometry;
+THREE.CircleGeometry.prototype = Object.create( THREE.Geometry.prototype );