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

AnimBinder path resolution update #4548

Merged
merged 1 commit into from
Aug 17, 2022
Merged

AnimBinder path resolution update #4548

merged 1 commit into from
Aug 17, 2022

Conversation

ellthompson
Copy link
Contributor

@ellthompson ellthompson commented Aug 17, 2022

This PR updates the AnimBinder to support two types of animation curve paths.
The first is currently supported in the engine and looks something like this:

RootBone/RootNode/Hips/etc/etc

This covers the case where the entity that the anim component is attached to (RootBone), is the parent of the GLB hierarchy to be animated. The GLB hierarchy in this instance starts at RootNode.

The second type of path which is supported in this PR looks like:

RootBone/Hips/etc/etc

This will occur when the entity that the anim component is attached to (RootBone) is also the RootNode of the GLB hierachy which is being animated. FBX's loaded using the editor's import hierarchy feature will have this structure. The GLB hierarchy in this instance starts at RootBone.

Fixes: playcanvas/editor#602

I confirm I have read the contributing guidelines and signed the Contributor License Agreement.

@ellthompson ellthompson added the area: animation Animation related issue label Aug 17, 2022
@ellthompson ellthompson requested a review from a team August 17, 2022 10:11
@ellthompson ellthompson self-assigned this Aug 17, 2022
Copy link
Contributor

@mvaligursky mvaligursky left a comment

Choose a reason for hiding this comment

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

glad it has such an easy solution!

@ellthompson ellthompson merged commit 38dd05c into main Aug 17, 2022
@ellthompson ellthompson deleted the anim-binder-update branch August 17, 2022 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: animation Animation related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Import Hierarchy doesn't add RootNode to hierarchy
3 participants