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

Update matrix if parent changes in WebGL renderer #496

Merged
merged 1 commit into from
Dec 13, 2020

Conversation

adroitwhiz
Copy link
Contributor

Resolves #495

I could also fix this by adding _flagParent to Shape, and then making parent a getter/setter, but only the WebGL renderer needs to know when the parent changes, and it would probably incur a minor performance penalty.

@jonobr1 jonobr1 merged commit 7fd0b98 into jonobr1:dev Dec 13, 2020
@jonobr1
Copy link
Owner

jonobr1 commented Dec 13, 2020

💯💯💯

elShiaLabeouf pushed a commit to elShiaLabeouf/two.js that referenced this pull request Dec 17, 2021
Update matrix if parent changes in WebGL renderer
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.

Changing a shape's parent doesn't update the shape's transform in the WebGL renderer
2 participants