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

Set `.background` null when removing `background` component by mrxz · Pull Request #5417 · aframevr/aframe · GitHub

Set .background null when removing background component - #5417

Merged
dmarcos merged 1 commit into
aframevr:masterfrom
mrxz:fix-background-component
Dec 19, 2023
Merged

Set .background null when removing background component#5417
dmarcos merged 1 commit into
aframevr:masterfrom
mrxz:fix-background-component

Conversation

mrxz commented Dec 19, 2023

Copy link
Copy Markdown
Contributor

Description:
The background component set the scene background to the string value black when removed. Not only is this an invalid value for the background property in Three.js, it also doesn't match the default value from before adding the background component.

Changes proposed:

  • Set sceneEl.object3D.background to null when removing background component

dmarcos commented Dec 19, 2023

Copy link
Copy Markdown
Member

Thanks!

dmarcos merged commit fce5b6a into aframevr:master Dec 19, 2023
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.

2 participants


Back | FazBrowse Home | New Git URL