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(MeshReflectionMaterial): remove unneeded material.onBeforeRender #534

Merged
merged 1 commit into from
Nov 23, 2024

Conversation

andretchen0
Copy link
Contributor

@andretchen0 andretchen0 commented Nov 23, 2024

Problem

<MeshReflectionMaterial /> throws whenever it's included in a scene.

The local onBeforeRender function in the file is called by the material, but the call doesn't send the arguments in the expected order.

Solution

It's not necessary for onBeforeRender to be called by the material, since it's called during useLoop().onBeforeRender().

Removed the call by the material.

Copy link

netlify bot commented Nov 23, 2024

Deploy Preview for cientos-tresjs ready!

Name Link
🔨 Latest commit 0896b16
🔍 Latest deploy log https://app.netlify.com/sites/cientos-tresjs/deploys/6741a0021d0f090008d48fab
😎 Deploy Preview https://deploy-preview-534--cientos-tresjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@andretchen0 andretchen0 marked this pull request as ready for review November 23, 2024 09:33
@alvarosabu alvarosabu added bug Something isn't working p4-important-bug Violate documented behavior or significantly improve performance (priority) labels Nov 23, 2024
@alvarosabu alvarosabu merged commit f622324 into main Nov 23, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working p4-important-bug Violate documented behavior or significantly improve performance (priority)
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants