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
Added support for multiple animated nodes in a .gltf file #8038
Changes from all commits
9e9e99a
2c58d81
eb24a08
50506a7
24a3903
0f82598
6838e96
d908f85
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,12 +46,12 @@ | |
(when is-single-anim | ||
(rig/make-animation-set-build-target (resource/workspace resource) _node-id animation-set)))) | ||
|
||
(g/defnk produce-animation-ids [_node-id resource animations-resource animation-set-info animation-set] | ||
(g/defnk produce-animation-ids [_node-id resource animations-resource animation-set-info animation-set animation-ids] | ||
(let [is-single-anim (or (empty? animation-set) | ||
(not (animation-set/is-animation-set? animations-resource)))] | ||
(if is-single-anim | ||
(if animations-resource | ||
[(resource/base-name animations-resource)] ; single animation file | ||
animation-ids | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While technically "breaking" the api here, I also consider it a bug fix. At most, they'll get a build error, which is easy to fix. Note, I haven't change any code for the Collada code path, as we have deprecated that. So that should remain the same. |
||
[]) | ||
(:animation-ids animation-set-info)))) | ||
|
||
|
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.
Bug fix.
Previously, we stored all animations (just renaming them all to the same name).
Now we only store the longest.