Explorar o código

fixed the uvs bug

jbousquie %!s(int64=10) %!d(string=hai) anos
pai
achega
ee9bcd6128
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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[] {
         private _uvsToShapeUV(uvs): number[] {
             var shapeUV = [];
             var shapeUV = [];
             if (uvs) {
             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;
             return shapeUV;
         }
         }