diff --git a/package.json b/package.json index 9ebfe1b9..c4a8a07a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wwobjloader2", - "version": "1.0.7", + "version": "1.1.0", "description": "New OBJLoader utilizing web worker for three.js", "main": "build/WWOBJLoader.js", "author": "kaisalmen", diff --git a/src/loaders/OBJLoader2.js b/src/loaders/OBJLoader2.js index 9b2fb6ce..947b37ef 100644 --- a/src/loaders/OBJLoader2.js +++ b/src/loaders/OBJLoader2.js @@ -958,7 +958,7 @@ THREE.OBJLoader2 = (function () { } if ( ! normalBA ) bufferGeometry.computeVertexNormals(); - if ( createMultiMaterial ) material = new THREE.MultiMaterial( materials ); + if ( createMultiMaterial ) material = materials; var mesh = new THREE.Mesh( bufferGeometry, material ); this.sceneGraphBaseNode.add( mesh ); diff --git a/src/loaders/WWOBJLoader2.js b/src/loaders/WWOBJLoader2.js index d8ef3145..88f1ab64 100644 --- a/src/loaders/WWOBJLoader2.js +++ b/src/loaders/WWOBJLoader2.js @@ -409,10 +409,9 @@ THREE.OBJLoader2.WWOBJLoader2 = (function () { if ( createMultiMaterial ) multiMaterials.push( material ); } - if ( createMultiMaterial ) { - material = new THREE.MultiMaterial( multiMaterials ); + material = multiMaterials; var materialGroups = payload.materialGroups; var materialGroup; for ( var key in materialGroups ) {