فهرست منبع

Mesh.ExtrudeShapeCustom() : added forgotten default values to scaleFunction and rotationFunction properties

jbousquie 10 سال پیش
والد
کامیت
474ca1cc75
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/Mesh/babylon.mesh.ts

+ 2 - 2
src/Mesh/babylon.mesh.ts

@@ -1671,8 +1671,8 @@
                 scene = pathOrScene;
                 path = options.path;
                 shape = options.shape;
-                scaleFunction = options.scaleFunction;
-                rotationFunction = options.rotationFunction;
+                scaleFunction = options.scaleFunction || ((i, distance) => { return 1; });
+                rotationFunction = options.rotationFunction || ((i, distance) => { return 0; });
                 ribbonCloseArray = options.ribbonCloseArray || false;
                 ribbonClosePath = options.ribbonClosePath || false;
                 cap = (options.cap === 0) ? 0 : options.cap || Mesh.NO_CAP;