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

Stop the light probe only if this was set up in the first place #5429

Merged

Conversation

Elettrotecnica
Copy link
Contributor

Following #5384 and #5384 (comment) in particular

In this proposed change we stop the light probe only when this has been set up in the first place.

All the best

@vincentfretin
Copy link
Contributor

Indeed, looks good to me.

@@ -51,7 +51,9 @@ module.exports.Component = register('reflection', {
});

this.el.addEventListener('exit-vr', function () {
self.stopLightProbe();
if (self.xrLightProbe) {
Copy link
Member

Choose a reason for hiding this comment

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

can do one liner

if (self.xrLightProbe) { self.stopLightProbe(); }

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Of course, done

@dmarcos
Copy link
Member

dmarcos commented Jan 12, 2024

Thank you!

@dmarcos dmarcos merged commit 1691837 into aframevr:master Jan 12, 2024
1 check passed
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