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

If the parent bone of a slot with keys is different, the keys of the parent bone are imported to a different bone when animations are imported. #826

Open
misaki-eymard opened this issue Sep 4, 2024 · 0 comments

Comments

@misaki-eymard
Copy link

Description:
When a slot with the same name is under another bone, even the timeline of the parent bone of that slot seems to be imported into another bone. Also, if the X/Y of translate or scale for that bone is separated, the separation state will be imported for the bone with the same name, however the actual separating key itself will be imported for the bone with the slot of the same name, even though the X/Y separation option is not enabled. This causes the problem that you can have a translate-X or translate-Y key even though you do not have the X/Y separation option enabled.

Expected behavior:
Keys held by slots are imported for slots of the same name, but keys held by bones are always expected to be imported for bones of the same name.

Steps to reproduce:

  1. Download the attached .zip file: Import-Animation.zip
  2. Open ProjectA.spine using Spine 4.2.36.
  3. Make sure that the bone named A has animation in this project.
  4. Open ProjectB.spine.
  5. From the Spine menu, select Import Project..., specify ProjectA.spine in the Project file path, and import the animation.
  6. If you switch to animate mode and play back the imported animation, you will see that the animation that should have been imported into bone A is imported into bone B.

You can also see that the Translate option in the Separate section is unchecked in the properties displayed in the tree view, even though the bone B timeline shows translate X and translate Y as separate:
translate-x-y

Looking at the properties of bone A, the Translate option is checked:
translate-bone-a

If you change the slot's parent to bone A in setup mode and then import the animation again, you will see that all the keys are imported to bone A.

The version of Spine in which this issue was found:
4.2.36

This issue was reported in the following thread on the forum:
https://esotericsoftware.com/forum/d/26786-4236%E7%89%88%E6%9C%AC%E8%AE%BE%E7%BD%AE%E5%85%B3%E9%94%AE%E5%B8%A7%E5%87%BA%E9%94%99%E5%92%8C%E5%8A%A8%E7%94%BB%E5%AF%BC%E5%85%A5%E5%87%BA%E9%94%99

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant