Sfoglia il codice sorgente

Merge pull request #4266 from BabylonJSGuide/master

update catmullRom
David Catuhe 7 anni fa
parent
commit
b931b370d4
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      src/Math/babylon.math.ts

+ 1 - 0
src/Math/babylon.math.ts

@@ -6560,6 +6560,7 @@
                         amount += step;
                     }
                 }
+                catmullRom.push(catmullRom[0]);
             }
             else {
                 var totalPoints = new Array<Vector3>();