Преглед изворни кода

Updated CircleGeometry to the new instancing pattern.

Mr.doob пре 13 година
родитељ
комит
6b87d85477
1 измењених фајлова са 1 додато и 2 уклоњено
  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 );