Bläddra i källkod

segment stroke number is now computed before current vector normalization

jbousquie 10 år sedan
förälder
incheckning
a0273044bf
1 ändrade filer med 1 tillägg och 1 borttagningar
  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);
                     dashshft = (<any>linesInstance).dashSize * shft / ((<any>linesInstance).dashSize + (<any>linesInstance).gapSize);
                     for (i = 0; i < points.length - 1; i++) {
                     for (i = 0; i < points.length - 1; i++) {
                         points[i + 1].subtractToRef(points[i], curvect);
                         points[i + 1].subtractToRef(points[i], curvect);
-                        curvect.normalize();
                         nb = Math.floor(curvect.length() / shft);
                         nb = Math.floor(curvect.length() / shft);
+                        curvect.normalize();
                         j = 0;
                         j = 0;
                         while (j < nb && p < positions.length) {
                         while (j < nb && p < positions.length) {
                             curshft = shft * j;
                             curshft = shft * j;