Parcourir la source

fixing issue with polygonMesh

David Catuhe il y a 10 ans
Parent
commit
a1dab223bc

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

@@ -136,9 +136,9 @@ var BABYLON;
                     indices.push(point.index);
                 });
             });
-            result.setVerticesData(VertexBuffer.PositionKind,positions,  updatable);
-            result.setVerticesData(VertexBuffer.NormalKind,normals, updatable);
-            result.setVerticesData(VertexBuffer.UVKind,uvs, updatable);
+            result.setVerticesData(BABYLON.VertexBuffer.PositionKind, positions, updatable);
+            result.setVerticesData(BABYLON.VertexBuffer.NormalKind, normals, updatable);
+            result.setVerticesData(BABYLON.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(VertexBuffer.PositionKind,positions,  updatable);
-            result.setVerticesData(VertexBuffer.NormalKind,normals  updatable);
-            result.setVerticesData(VertexBuffer.UVKind,uvs, updatable);
+            result.setVerticesData(VertexBuffer.PositionKind, positions, updatable);
+            result.setVerticesData(VertexBuffer.NormalKind, normals, updatable);
+            result.setVerticesData(VertexBuffer.UVKind, uvs, updatable);
             result.setIndices(indices);
 
             return result;
         }
 
     }
-}
+}

+ 4 - 4
babylon.2.1-beta.debug.js

@@ -7148,9 +7148,9 @@ var BABYLON;
                 this._worldMatrix.multiplyToRef(this.parent.getWorldMatrix(), this._computedViewMatrix);
                 this._globalPosition.copyFromFloats(this._computedViewMatrix.m[12], this._computedViewMatrix.m[13], this._computedViewMatrix.m[14]);
                 this._computedViewMatrix.invert();
-                this._currentRenderId = this.getScene().getRenderId();
                 this._markSyncedWithParent();
             }
+            this._currentRenderId = this.getScene().getRenderId();
             return this._computedViewMatrix;
         };
         Camera.prototype._computeViewMatrix = function (force) {
@@ -28736,9 +28736,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(BABYLON.VertexBuffer.PositionKind, positions, updatable);
+            result.setVerticesData(BABYLON.VertexBuffer.NormalKind, normals, updatable);
+            result.setVerticesData(BABYLON.VertexBuffer.UVKind, uvs, updatable);
             result.setIndices(indices);
             return result;
         };

Fichier diff supprimé car celui-ci est trop grand
+ 3 - 3
babylon.2.1-beta.js