aframevr / aframevr/aframe

light="defaultLightsEnabled: false" is ignored on second load

Open
#4,858 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
17.6k
Forks
4.4k
PR merge metrics
No merged PRs in 30d

Description

Description:

  • A-Frame Version: 1.2.0
  • Platform / Device:
  • Reproducible Code Snippet or URL:

I have both existing lights and the above added to the scene element.

Works the first time (no other lights) the second time the scene loads (it's in a react app but removed and then loaded again ) the above is ignored and the lights are added.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, test, or entry point is named. Start by reproducing the React scene mount, unmount, and second load with defaultLightsEnabled: false, then trace how that setting is handled between loads. Done means existing lights remain disabled on every scene load.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
game-dev, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.