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

Fix bug in a-scene's setAttribute in case of uninitialized systems by mrxz · Pull Request #5482 · aframevr/aframe · GitHub

Fix bug in a-scene's setAttribute in case of uninitialized systems - #5482

Merged
dmarcos merged 1 commit into
aframevr:masterfrom
mrxz:scene-set-attribute
Mar 6, 2024
Merged

Fix bug in a-scene's setAttribute in case of uninitialized systems#5482
dmarcos merged 1 commit into
aframevr:masterfrom
mrxz:scene-set-attribute

Conversation

mrxz commented Feb 29, 2024

Copy link
Copy Markdown
Contributor

Description:
The setAttribute method in <a-scene> prioritizes systems over components and other attributes. However, it did this by checking if the attribute name was present in the object with initialized systems. When programmatically creating an a-scene these might not have been initialized yet.

This PR changes the condition to first check if the attribute name matches a registered system.

Fixes: #3211

Changes proposed:

  • Check if attribute name matches a registered system in setAttribute
  • Introduce unit tests for checking <a-scene>'s setAttribute

dmarcos commented Mar 6, 2024

Copy link
Copy Markdown
Member

Thanks!

dmarcos merged commit 0623abc into aframevr:master Mar 6, 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.

document how to disable default lights on dynamically inserted scenes

2 participants


Back | FazBrowse Home | New Git URL