ObjLoader should now support textures correctly
This commit is contained in:
@@ -133,7 +133,7 @@ THREE.MTLLoader.MaterialCreator.prototype = {
|
||||
setMaterials: function( materialsInfo ) {
|
||||
|
||||
this.materialsInfo = this.convert( materialsInfo );
|
||||
this.materials = {};
|
||||
this.materials = {};
|
||||
this.materialsArray = [];
|
||||
this.nameLookup = {};
|
||||
|
||||
@@ -255,6 +255,8 @@ THREE.MTLLoader.MaterialCreator.prototype = {
|
||||
|
||||
create: function ( materialName ) {
|
||||
|
||||
// console.log(materialName.indexOf(' ') === -1);
|
||||
|
||||
if ( this.materials[ materialName ] === undefined ) {
|
||||
|
||||
this.createMaterial_( materialName );
|
||||
|
||||
Reference in New Issue
Block a user