diff --git a/v6a7eh2o29.js b/v6a7eh2o29.js index d4f3a7f..ce60d83 100644 --- a/v6a7eh2o29.js +++ b/v6a7eh2o29.js @@ -115,6 +115,11 @@ this.createMesh = function(meshType, type) { var mesh = this[type].clone(); var material = this[type].materials[0].clone(); mesh.materials = [material]; + + if (typeof this.meshes[meshType] === 'undefined') { + this.meshes[meshType] = []; + } + this.meshes[meshType].push( { inUse : false,