Parcourir la source

segment stroke number is now computed before current vector normalization

jbousquie il y a 10 ans
Parent
commit
b69897b211
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      Babylon/Mesh/babylon.mesh.vertexData.ts

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

@@ -817,8 +817,8 @@
             dashshft = dashSize * shft / (dashSize + gapSize);
             for (i = 0; i < points.length - 1; i++) {
                 points[i + 1].subtractToRef(points[i], curvect);
-                curvect.normalize();
                 nb = Math.floor(curvect.length() / shft);
+                curvect.normalize();
                 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);