浏览代码

correct a mistake in writing

winjeysong 5 年之前
父节点
当前提交
a9e4075a80
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      threejs/lessons/threejs-load-gltf.md

+ 1 - 1
threejs/lessons/threejs-load-gltf.md

@@ -291,7 +291,7 @@ the new `Object3D` a `cars` array.
 +
 +    root.updateMatrixWorld();
 +    for (const car of loadedCars.children.slice()) {
-+      const fix = fixes.find(fix => car.name.startsWith+(fix.prefix));
++      const fix = fixes.find(fix => car.name.startsWith(fix.prefix));
 +      const obj = new THREE.Object3D();
 +      car.getWorldPosition(obj.position);
 +      car.position.set(0, 0, 0);