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(composer): Fixes the light helper delete #349

Merged
merged 2 commits into from
Nov 10, 2022
Merged

Conversation

jwills-jdubs
Copy link
Contributor

Overview

  1. Reverts the previous change to parent to an dobject as this causes an error on delete thanks to React Three Fiber based removal
  2. Helper checks each frame whether or not it should remain visible based on the ancestry of the light

useFrame gets a bad wrap as the boogeyman but this look up the ancestor tree should not cause performance issues but maintains a simplicity and code cleanliness to get around this issue. Typically only a complex set of calculations would be problematic but most 3D software performs operations every frame. Should we see performance issues we can revisit the implementation

Legal

This project is available under the Apache 2.0 License.

…lity link

1. Reverts the previous change to parent to an dobject as this causes an error on delete thanks to React Three Fiber based removal
2. Helper checks each frame whether or not it should remain visible based on the ancestry of the light
@jwills-jdubs jwills-jdubs marked this pull request as ready for review November 10, 2022 20:21
@jwills-jdubs jwills-jdubs merged commit 2f51263 into main Nov 10, 2022
@jwills-jdubs jwills-jdubs deleted the fix-light-helper branch November 10, 2022 20:42
@github-actions github-actions bot mentioned this pull request Nov 10, 2022
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.

None yet

2 participants