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

[bugfix] Dispose helper when removing it #736

Merged
merged 2 commits into from
Jul 22, 2024

Conversation

vincentfretin
Copy link
Contributor

Dispose helper when removing it to properly dispose material and geometry.
In recent three.js version all helpers have now a dispose function, that was not the case historically.
This is similar to three.js editor
https://github.com/mrdoob/three.js/blob/267e76c2d884cb0b4c12f4c5ffa5a7d03ce82bba/editor/js/Editor.js#L472

Also remove the second argument to CameraHelper, CameraHelper only takes one argument.
https://github.com/mrdoob/three.js/blob/267e76c2d884cb0b4c12f4c5ffa5a7d03ce82bba/src/helpers/CameraHelper.js#L21

@dmarcos
Copy link
Member

dmarcos commented Jul 22, 2024

Thank you!

@dmarcos dmarcos merged commit 4120813 into aframevr:master Jul 22, 2024
1 check passed
@vincentfretin vincentfretin deleted the helper-dispose branch July 22, 2024 17:26
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