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

CSM.remove() removes the targets, too #24658

Merged
merged 1 commit into from
Sep 19, 2022

Conversation

yoshikiohshima
Copy link
Contributor

@yoshikiohshima yoshikiohshima commented Sep 17, 2022

Fixed #24653

Description

CSM.createLights() adds the DirectionalLight and its target to its parent but the counterpart .remove only removes only the light and leaves the orphaned target.

@Mugen87 Mugen87 added this to the r145 milestone Sep 18, 2022
@Mugen87 Mugen87 merged commit 4de773d into mrdoob:dev Sep 19, 2022
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.

CSM.remove() needs to delete target as well as DirectionalLight
3 participants