Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vujadin committed Feb 22, 2018
1 parent 65821bf commit 12ba8ec
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
4 changes: 2 additions & 2 deletions com/babylonhx/mesh/Geometry.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1247,12 +1247,12 @@ import com.babylonhx.utils.GL.GLVertexArrayObject;
if (parsedGeometry.matricesWeights != null) {
Geometry._CleanMatricesWeights(parsedGeometry, mesh);
var mwgh:Array<Float> = cast parsedGeometry.matricesWeights;
mesh.setVerticesData(VertexBuffer.MatricesWeightsKind, mwgh, parsedGeometry.matricesWeights._updatable);
mesh.setVerticesData(VertexBuffer.MatricesWeightsKind, new Float32Array(mwgh), parsedGeometry.matricesWeights._updatable);
}

if (parsedGeometry.matricesWeightsExtra != null) {
var mwghe:Array<Float> = cast parsedGeometry.matricesWeightsExtra;
mesh.setVerticesData(VertexBuffer.MatricesWeightsExtraKind, mwghe, parsedGeometry.matricesWeights._updatable);
mesh.setVerticesData(VertexBuffer.MatricesWeightsExtraKind, new Float32Array(mwghe), parsedGeometry.matricesWeights._updatable);
}

var idc:Array<Int> = cast parsedGeometry.indices;
Expand Down
2 changes: 0 additions & 2 deletions com/babylonhx/mesh/Mesh.hx
Original file line number Diff line number Diff line change
Expand Up @@ -919,8 +919,6 @@ import com.babylonhx.utils.typedarray.Int32Array;
* If the `kind` is the `PositionKind`, the mesh `BoundingInfo` is renewed, so the bounding box and sphere, and the mesh World Matrix is recomputed.
*/
override public function setVerticesData(kind:String, data:Float32Array, updatable:Bool = false, ?stride:Int) {
trace(kind);
trace(data);
if (this._geometry == null) {
var vertexData = new VertexData();
vertexData.set(data, kind);
Expand Down
6 changes: 0 additions & 6 deletions com/babylonhx/mesh/SubMesh.hx
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,6 @@ import com.babylonhx.utils.typedarray.Int32Array;
extend = { minimum: this._renderingMesh.getBoundingInfo().minimum.clone(), maximum: this._renderingMesh.getBoundingInfo().maximum.clone() };
}
else {
trace(data);
trace(indices);
trace(this.indexStart);
trace(this.indexCount);
trace(this._renderingMesh.geometry);
trace(this._renderingMesh.geometry.boundingBias);
extend = MathTools.ExtractMinAndMaxIndexed(data, indices, this.indexStart, this.indexCount, this._renderingMesh.geometry.boundingBias);
}

Expand Down

0 comments on commit 12ba8ec

Please sign in to comment.