Pārlūkot izejas kodu

Merge pull request #476 from samuelgirardin/master

Update babylon.polygonmesh.ts …
David Catuhe 10 gadi atpakaļ
vecāks
revīzija
f3ead1c8b0

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

@@ -136,9 +136,9 @@ var BABYLON;
                     indices.push(point.index);
                 });
             });
-            result.setVerticesData(positions, BABYLON.VertexBuffer.PositionKind, updatable);
-            result.setVerticesData(normals, BABYLON.VertexBuffer.NormalKind, updatable);
-            result.setVerticesData(uvs, BABYLON.VertexBuffer.UVKind, updatable);
+            result.setVerticesData(VertexBuffer.PositionKind,positions,  updatable);
+            result.setVerticesData(VertexBuffer.NormalKind,normals, updatable);
+            result.setVerticesData(VertexBuffer.UVKind,uvs, updatable);
             result.setIndices(indices);
             return result;
         };
@@ -146,4 +146,4 @@ var BABYLON;
     })();
     BABYLON.PolygonMeshBuilder = PolygonMeshBuilder;
 })(BABYLON || (BABYLON = {}));
-//# sourceMappingURL=babylon.polygonMesh.js.map
+//# sourceMappingURL=babylon.polygonMesh.js.map

+ 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,normals  updatable);
+            result.setVerticesData(VertexBuffer.UVKind,uvs, updatable);
             result.setIndices(indices);
 
             return result;
         }
 
     }
-}
+}