FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Stop the light probe only if this was set up in the first place by Elettrotecnica · Pull Request #5429 · aframevr/aframe · GitHub

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

Merged
dmarcos merged 2 commits into
aframevr:masterfrom
Elettrotecnica:do-not-always-recompute-lights
Jan 12, 2024
Merged

Stop the light probe only if this was set up in the first place#5429
dmarcos merged 2 commits into
aframevr:masterfrom
Elettrotecnica:do-not-always-recompute-lights

Conversation

Copy link
Copy Markdown
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 force-pushed the do-not-always-recompute-lights branch from 54fe98a to 9c9cc9d Compare January 12, 2024 14:41

Copy link
Copy Markdown
Contributor

Indeed, looks good to me.

Comment thread src/components/scene/reflection.js Outdated

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

can do one liner

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Of course, done

dmarcos commented Jan 12, 2024

Copy link
Copy Markdown
Member

Thank you!

dmarcos merged commit 1691837 into aframevr:master Jan 12, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL