Gregg Tavares 6 years ago
parent
commit
08517478f0

+ 1 - 1
threejs/lessons/threejs-optimize-lots-of-objects-animated.md

@@ -669,7 +669,7 @@ baseGeometry.morphAttributes.position = geometries.map((geometry, ndx) => {
   const attribute = geometry.getAttribute('position');
 -  const name = `target${ndx}`;
 +  // put the number in front so we can more easily parse it later
-+  const name = `${ndx}target$`;
++  const name = `${ndx}target`;
   attribute.name = name;
   return attribute;
 });

+ 1 - 1
threejs/threejs-lots-of-objects-morphtargets-w-colors.html

@@ -314,7 +314,7 @@ function main() {
     baseGeometry.morphAttributes.position = geometries.map((geometry, ndx) => {
       const attribute = geometry.getAttribute('position');
       // put the number in front so we can more easily parse it later
-      const name = `${ndx}target$`;
+      const name = `${ndx}target`;
       attribute.name = name;
       return attribute;
     });