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

@2youyou2
Copy link
Contributor

@2youyou2 2youyou2 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 = [{
Copy link
Contributor Author

@2youyou2 2youyou2 Apr 10, 2019

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

Copy link
Member

@pandamicro pandamicro Apr 11, 2019

这样数据会变多吧?

Copy link
Member

@pandamicro pandamicro Apr 11, 2019

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

Copy link
Contributor Author

@2youyou2 2youyou2 Apr 11, 2019

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

@pandamicro pandamicro merged commit 31527ce into cocos-creator:v2.1-release Apr 11, 2019
1 check passed
@2youyou2 2youyou2 deleted the v2.1-release-refine-import-skeleton branch Aug 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants