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

GLTFLoader: Top-down loading for cameras. #12119

Merged
merged 1 commit into from
Oct 18, 2017

Conversation

donmccurdy
Copy link
Collaborator

@donmccurdy donmccurdy commented Sep 4, 2017

Part 2 for #11924.

/cc @takahirox

@takahirox
Copy link
Collaborator

Sorry for the late reviewing.
Would you please fix the conflict?
I'll review once you've done.

@donmccurdy
Copy link
Collaborator Author

No worries, thanks! it is rebased now.


var _camera;
if ( !params ) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Very minor thing tho, you need an space after ! as the coding style.

if ( ! params ) {

dependencies.cameras = dependencies.cameras || [];
var scenes = dependencies.scenes;
var scene = scenes[ json.scene || 0 ];
var animations = dependencies.animations;
Copy link
Collaborator

@takahirox takahirox Oct 17, 2017

Choose a reason for hiding this comment

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

Is this intended change that animations will be undefined if glTF doesn't have animations tho it was []?

@takahirox
Copy link
Collaborator

Looks good other than two minor things as I commented.

@donmccurdy
Copy link
Collaborator Author

Done, thanks!

@mrdoob mrdoob merged commit b71712c into mrdoob:dev Oct 18, 2017
@mrdoob
Copy link
Owner

mrdoob commented Oct 18, 2017

Thanks!

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