-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
glTF importer using cgltf library #835
Conversation
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.
nice 😄
@@ -20,5 +20,6 @@ hfm::Model::Pointer ModelLoader::load(const hifi::ByteArray& data, const hifi::V | |||
if (!serializer) { | |||
return hfm::Model::Pointer(); | |||
} | |||
qDebug() << "ModelLoader::load: " << url; |
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.
near the end, hifi tried to remove all instances of directly printing model URLs from the logs as a basic security measure, so I would vote for removing this or just commenting it out
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.
Thanks! That was indeed intended to be removed and I forgot. What do you think about urls in error messages? Maybe for broken models it would make sense to log url?
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.
yeah I think in error messages it's helpful, I believe hifi left some of those around too
hfmModel.loadErrorCount++; | ||
continue; | ||
return false; |
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.
we used to continue here but now we completely bail. is there a reason for that? there are several other places like this above and below
This fixes issue with ReadyPlayerMe avatars being broken and a lot of other glTF-related issues.