Skip to content

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

@Elettrotecnica Elettrotecnica force-pushed the do-not-always-recompute-lights branch from 54fe98a to 9c9cc9d Compare January 12, 2024 14:41
@vincentfretin
Copy link
Contributor

Indeed, looks good to me.


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
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