Pārlūkot izejas kodu

refactor ParametricGeometry for new API. discarding other changes to rebase on mrdoob new refactoring

zz85 13 gadi atpakaļ
vecāks
revīzija
901bbf3d21
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/extras/geometries/ParametricGeometry.js

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

@@ -21,7 +21,7 @@ THREE.ParametricGeometry = function(slices, stacks, func) {
             phi = j / stacks;
             phi = j / stacks;
 
 
             p = func(theta, phi);
             p = func(theta, phi);
-            verts.push(new THREE.Vertex(p));
+            verts.push(p);
 
 
         }
         }
     }
     }