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

LDrawLoader: Fix getMainEdgeMaterial() #23334

Merged
merged 1 commit into from
Jan 26, 2022
Merged

LDrawLoader: Fix getMainEdgeMaterial() #23334

merged 1 commit into from
Jan 26, 2022

Conversation

yomboprime
Copy link
Collaborator

@yomboprime yomboprime commented Jan 26, 2022

Related issue: ---

Description

For some reason, LDrawLoader.getMainEdgeMaterial() is returning a material that when updated it does not correspond to the edge lines objects main material. If instead, LDrawLoader.getMainEdgeMaterial().userData.edgeMaterial is used, the correct colors appear in the lines objects when the material is updated.

So I've changed the implementation of the method to return the userData.edgeMaterial member instead.

@yomboprime yomboprime requested a review from gkjohnson January 26, 2022 01:13
@mrdoob mrdoob added this to the r137 milestone Jan 26, 2022
@mrdoob mrdoob merged commit 406da8c into mrdoob:dev Jan 26, 2022
@mrdoob
Copy link
Owner

mrdoob commented Jan 26, 2022

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.

3 participants