Skip to content

Conversation

@Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Nov 28, 2018


//

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

@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