瀏覽代碼

fixed the uvs bug

jbousquie 9 年之前
父節點
當前提交
ee9bcd6128
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/Particles/babylon.solidParticleSystem.ts

+ 2 - 1
src/Particles/babylon.solidParticleSystem.ts

@@ -114,7 +114,8 @@ module BABYLON {
         private _uvsToShapeUV(uvs): number[] {
             var shapeUV = [];
             if (uvs) {
-                    shapeUV.push(uvs.x, uvs.y, uvs.z, uvs.w);
+                for (var i = 0; i < uvs.length; i++)
+                    shapeUV.push(uvs[i]);
             }
             return shapeUV;
         }