Skip to content

Conversation

@Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Nov 25, 2019

Some OBJ exporters still write usemap in OBJ files. However, OBJLoader is not able to parse this line so far. The problem was once discussed here:

https://www.reddit.com/r/threejs/comments/6hbbnt/trouble_with_mtl_obj_import/

Another user encounters now the same issue with the same asset package:

https://stackoverflow.com/questions/59010593/cannot-display-object-in-threejs-getting-error-three-objloader-unexpected-lin

This little patch ensures OBJLoader does not produce a runtime error but just ignores usemap. The assets are loaded correctly now since they define their textures in MTL files, too. So it looks like a redundant definition of the used exporter.

@Mugen87 Mugen87 added this to the r111 milestone Nov 25, 2019
@Mugen87 Mugen87 merged commit 5fd3b5c into mrdoob:dev Nov 25, 2019
@mrdoob
Copy link
Owner

mrdoob commented Nov 25, 2019

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants