Преглед изворни кода

Update babylon.polygonmesh.ts

setVerticesData right order fixed
Samuel Girardin пре 10 година
родитељ
комит
a3653614e4
1 измењених фајлова са 4 додато и 4 уклоњено
  1. 4 4
      Babylon/Mesh/babylon.polygonmesh.ts

+ 4 - 4
Babylon/Mesh/babylon.polygonmesh.ts

@@ -152,13 +152,13 @@
                 });
                 });
             });
             });
 
 
-            result.setVerticesData(positions, VertexBuffer.PositionKind, updatable);
-            result.setVerticesData(normals, VertexBuffer.NormalKind, updatable);
-            result.setVerticesData(uvs, VertexBuffer.UVKind, updatable);
+            result.setVerticesData(VertexBuffer.PositionKind,positions,  updatable);
+            result.setVerticesData(VertexBuffer.NormalKind,  updatable);
+            result.setVerticesData(VertexBuffer.UVKind,uvs, updatable);
             result.setIndices(indices);
             result.setIndices(indices);
 
 
             return result;
             return result;
         }
         }
 
 
     }
     }
-}
+}