Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FBXLoader: Fixed check of material type #11417

Merged
merged 1 commit into from
May 30, 2017
Merged

FBXLoader: Fixed check of material type #11417

merged 1 commit into from
May 30, 2017

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented May 30, 2017

I've noticed that Blender (2.74) exports FBX files with material types written like this Phong. FBXLoader currently assumes that the type value is written in lowercase. Therefore this PR introduces a little fix in .parseMaterial() that converts the type string to lowercase letters so the material is parsed correctly.

/ping @takahirox for review

FBX File (Blender Export).zip

@Mugen87 Mugen87 changed the title FBXLoader: Fix check of material type FBXLoader: Fixed check of material type May 30, 2017
@mrdoob
Copy link
Owner

mrdoob commented May 30, 2017

Looks good to me!

@mrdoob mrdoob merged commit 6821bd5 into mrdoob:dev May 30, 2017
@mrdoob
Copy link
Owner

mrdoob commented May 30, 2017

Thanks!

@Mugen87 Mugen87 deleted the fbx branch May 30, 2017 19:21
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