-
-
Notifications
You must be signed in to change notification settings - Fork 35.3k
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
Conversation
Sorry for the late reviewing. |
43ad28b
to
253e509
Compare
No worries, thanks! it is rebased now. |
examples/js/loaders/GLTFLoader.js
Outdated
|
||
var _camera; | ||
if ( !params ) { |
There was a problem hiding this comment.
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 ) {
examples/js/loaders/GLTFLoader.js
Outdated
dependencies.cameras = dependencies.cameras || []; | ||
var scenes = dependencies.scenes; | ||
var scene = scenes[ json.scene || 0 ]; | ||
var animations = dependencies.animations; |
There was a problem hiding this comment.
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 []
?
Looks good other than two minor things as I commented. |
253e509
to
f122850
Compare
Done, thanks! |
Thanks! |
Part 2 for #11924.
/cc @takahirox