Skip to content

Commit

Permalink
Increased version to V1.1.0.
Browse files Browse the repository at this point in the history
Adjusted to removal of MultiMaterial.
  • Loading branch information
kaisalmen committed Mar 26, 2017
1 parent 4756370 commit b182dda
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/loaders/OBJLoader2.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down
3 changes: 1 addition & 2 deletions src/loaders/WWOBJLoader2.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit b182dda

Please sign in to comment.