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

<primitive> removed node after reload #3125

Open
hansyulian opened this issue Dec 20, 2023 · 0 comments
Open

<primitive> removed node after reload #3125

hansyulian opened this issue Dec 20, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@hansyulian
Copy link

Hi, i am building a demo 3d view for cars. here is the repo: https://github.com/hansyulian/react-three-car-demo

how to setup:

  • npm install
  • cp .env.example .env
  • from here you either download the models from the https://hansyulian.github.io/test-gltf-files/assets and put in the models folder locally or change the .env url value to use https://hansyulian.github.io/test-gltf-files/assets instead

Problem:
Go to CarModelNode.tsx line 85. comment this, you will notice if you go to one model and then back, the animated models will got removed from the gltf.scene.children and the next render, the child node will not be rendered.

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

No branches or pull requests

2 participants