Просмотр исходного кода

segment stroke number is now computed before current vector normalization

jbousquie 10 лет назад
Родитель
Сommit
a0273044bf
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Babylon/Mesh/babylon.mesh.ts

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

@@ -1359,8 +1359,8 @@
                     dashshft = (<any>linesInstance).dashSize * shft / ((<any>linesInstance).dashSize + (<any>linesInstance).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();
                         j = 0;
                         while (j < nb && p < positions.length) {
                             curshft = shft * j;