فهرست منبع

Update babylon.polygonmesh.js

Fixed setVerticesData
Samuel Girardin 10 سال پیش
والد
کامیت
d35c34013e
1فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 4 4
      Babylon/Mesh/babylon.polygonmesh.js

+ 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,  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