jbousquie 10 年之前
父节点
当前提交
d035aa708a
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      Babylon/Mesh/babylon.mesh.vertexData.ts

+ 5 - 5
Babylon/Mesh/babylon.mesh.vertexData.ts

@@ -820,11 +820,11 @@
                 curvect.normalize();
                 curvect.normalize();
                 nb = Math.floor(curvect.length() / shft);
                 nb = Math.floor(curvect.length() / shft);
                 for (var j = 0; j < nb; j++) {
                 for (var j = 0; j < nb; j++) {
-                      curshft = shft * j;
-                      positions.push(points[i].x + curshft * curvect.x , points[i].y + curshft * curvect.y, points[i].z + curshft * curvect.z);
-                      positions.push(points[i].x + (curshft + dashshft)* curvect.x, points[i].y + (curshft + dashshft) * curvect.y, points[i].z + (curshft + dashshft) * curvect.z);
-                      indices.push(idx, idx + 1);
-                      idx += 2;
+                    curshft = shft * j;
+                    positions.push(points[i].x + curshft * curvect.x , points[i].y + curshft * curvect.y, points[i].z + curshft * curvect.z);
+                    positions.push(points[i].x + (curshft + dashshft)* curvect.x, points[i].y + (curshft + dashshft) * curvect.y, points[i].z + (curshft + dashshft) * curvect.z);
+                    indices.push(idx, idx + 1);
+                    idx += 2;
                 }
                 }
             }
             }