Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(view/lights): for spotlights, restore parent on its target #1491

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

divyun
Copy link

@divyun divyun commented Aug 26, 2024

Resolves #1490

Target is added as a child to light.


But when the lights are cloned here
const dstObject = srcObject.clone();
, the corresponding clone in three.js https://github.com/mrdoob/three.js/blob/817a222f2d12baf44a38baf256bc9d4f65d82465/src/lights/SpotLight.js#L61 doesn't add a parent to target.

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.

Updating spotlight's definition, detaches the spotlight target.
1 participant