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

CatmullRomCurve3.toJSON() works only once #24010

Closed
GauthierEd opened this issue May 5, 2022 · 1 comment · Fixed by #24013
Closed

CatmullRomCurve3.toJSON() works only once #24010

GauthierEd opened this issue May 5, 2022 · 1 comment · Fixed by #24013
Labels

Comments

@GauthierEd
Copy link

When you call scene.toJSON() a second time with CatmullRomCurve3, the toJSON() method is no longer recognized for CatmullRomCurve3, CatmullRomCurve3 prototype changes to Object from Curve

We should be able to call toJSON() with CatmullRomCurve3 several times

Screenshots
First execution
1
Second execution
2

Platform:

  • Device: [Desktop,]
  • OS: [Windows]
  • Browser: [Chrome]
  • Three.js version: [dev, r140]
@Mugen87 Mugen87 added the Bug label May 5, 2022
@Mugen87
Copy link
Collaborator

Mugen87 commented May 5, 2022

I can reproduce here: https://jsfiddle.net/4hvgLz58/1/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants