-
Notifications
You must be signed in to change notification settings - Fork 258
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
Add support for manual attribution update #1043
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.
So sorry this took so long for me to review. There's a few changes to be made, but this is looking excellent!
<ul> | ||
{contentAttributions.map( | ||
(a, i) => | ||
a.author && |
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 check for author down below as well. I think maybe we just want to check for title here?
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.
As long as we want to show attribution if just one is present. Not sure if it makes sense to show only the title without knowing the author or just the author without knowing to which asset it is referring to. In my head valid attribution required both.
@robertlong Thanks for the review. I've fixed most of it. Still have doubts about the author/title check. |
782da8b
to
a60d3da
Compare
Looks good, excited to get it out there! |
closes #414 This PR adds support to show/edit attribution information in scene assets, specifically Model, Video, Image and Spawners. What this does right now:
resolveMedia
and then updated with the asset file info in case it's available (i.e. GLTF embedded asset info)It also fixes an issue with adding new source to audio/video nodes that threw an exception in Chrome an the updated element didn't work:
We still need to solve the case where we can add per node GLTF attribution information based on https://github.com/KhronosGroup/glTF/blob/master/extensions/2.0/Khronos/KHR_xmp/README.md Right now none of the sources support it but would be useful for exporting GLTF Spoke scenes while keeping all the attribution data. See #1044