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

ObjectLoader: Add fallback for Geometry #15336

Merged
merged 1 commit into from
Nov 29, 2018
Merged

ObjectLoader: Add fallback for Geometry #15336

merged 1 commit into from
Nov 29, 2018

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Nov 28, 2018

@@ -1888,14 +1888,6 @@ export function CanvasRenderer() {

//

export function JSONLoader() {
Copy link
Collaborator Author

@Mugen87 Mugen87 Nov 28, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's necessary to remove this entry otherwise 'JSONLoader' in THREE always evaluates to true. That's a bit unfortunate for users who just want to create an instance of JSONLoader. They will get the runtime error THREE.JSONLoader is not a constructor and not a log message if they don't manually include THREE.JSONLoader.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can keep that one and call the "new" one THREE.LegacyJSONLoader?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, renamed the loader from THREE.JSONLoader to THREE.LegacyJSONLoader.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Phew, it's really not easy to get rid of the old stuff...

@mrdoob mrdoob added this to the r99 milestone Nov 29, 2018
@mrdoob mrdoob merged commit 1a6bcc9 into mrdoob:dev Nov 29, 2018
@mrdoob
Copy link
Owner

mrdoob commented Nov 29, 2018

Yay! Thanks!

@Mugen87
Copy link
Collaborator Author

Mugen87 commented Nov 29, 2018

Update the migration guide: https://github.com/mrdoob/three.js/wiki/Migration-Guide#r98--r99

@RemusMar
Copy link
Contributor

It still doesn't work.
Please test what you did with this (r98) sample:
http://necromanthus.com/Test/html5/Lara_shader.html
It's critical to make it work because there are thousands of samples like this one over the net.

@Mugen87
Copy link
Collaborator Author

Mugen87 commented Nov 29, 2018

It's animated character so it think you have to complain here: #15314

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.

3 participants