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

make sure every joint has quat, scale, position curve #4188

Conversation

Projects
None yet
2 participants
@2youyou2
Copy link
Collaborator

commented Apr 10, 2019

Re:
https://forum.cocos.com/t/cocoscreator2-1-0-3d-3d/76192/6
cocos-creator/fireball#8827

Changes:

  • make sure every joint has quat, scale, position curve
let curves = paths[joint.path].props;

if (!curves.quat) {
curves.quat = [{

This comment has been minimized.

Copy link
@2youyou2

2youyou2 Apr 10, 2019

Author Collaborator

如果 curve 中没有某个属性,则用 pose 上的属性加到第一帧

This comment has been minimized.

Copy link
@pandamicro

pandamicro Apr 11, 2019

Member

这样数据会变多吧?

This comment has been minimized.

Copy link
@pandamicro

pandamicro Apr 11, 2019

Member

只对 RTS 处理了,不会有其他数据存在类似问题吗?

This comment has been minimized.

Copy link
@2youyou2

2youyou2 Apr 11, 2019

Author Collaborator

数据量会多一点点,这里不加,用户也是要自己手动加的
其他数据也有类似问题,不过骨骼动画里只有这些属性。

@pandamicro pandamicro merged commit 31527ce into cocos-creator:v2.1-release Apr 11, 2019

1 check passed

ci/circleci: test Your tests passed on CircleCI!
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.