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

fix: Mark third argument of materialReference as nullable #732

Merged
merged 2 commits into from
Jan 9, 2024

Conversation

0b5vr
Copy link
Contributor

@0b5vr 0b5vr commented Dec 25, 2023

What

The third argument of materialReference should be nullable.

The definition on Three.js: https://github.com/mrdoob/three.js/blob/r160/examples/jsm/nodes/accessors/MaterialReferenceNode.js#L9
The actual use of materialReference without the third argument (and this is the only use of materialReference in the Three.js repository): https://github.com/mrdoob/three.js/blob/85b3ee713ae64ac1db20fd9dd29d2892d10fab3d/examples/jsm/nodes/accessors/MaterialNode.js#L25

@0b5vr 0b5vr added the bug Something isn't working label Dec 25, 2023
@0b5vr 0b5vr self-assigned this Dec 25, 2023
Copy link
Contributor

@Methuselah96 Methuselah96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Methuselah96 Methuselah96 merged commit f56e79a into master Jan 9, 2024
3 checks passed
@Methuselah96 Methuselah96 deleted the material-reference-third branch January 9, 2024 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants