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 camera focus of skinned meshes #266

Merged
merged 2 commits into from
Oct 28, 2023
Merged

Fix camera focus of skinned meshes #266

merged 2 commits into from
Oct 28, 2023

Conversation

slimbuck
Copy link
Member

This PR fixes https://forum.playcanvas.com/t/model-viewer-4-7-0/33617.

The scene bound is only valid after rendering the scene once when skinned meshes are loaded.

In this PR we re-calculate the scene bounds and focus the camera again after the first render.

@slimbuck slimbuck added the bug Something isn't working label Oct 28, 2023
@slimbuck slimbuck requested a review from a team October 28, 2023 10:52
@slimbuck slimbuck self-assigned this Oct 28, 2023
@slimbuck slimbuck merged commit 15d4198 into main Oct 28, 2023
2 checks passed
@slimbuck slimbuck deleted the load-fix branch October 28, 2023 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants