zhong317 / spriter2spine

Convert .scml files to spine .json file. Base on Spriter Pro R11 and Spine 3.8.
27 stars 7 forks source link

Incorrect animation if middle bone has a picture #10

Open nemyagky opened 1 year ago

nemyagky commented 1 year ago

Works fine:

image

Works wrong:

image

[Remark]. I don't really understand how the script works and I don't know Python.

If I understand this correctly, bone 9 has connected pictures, because of this, bone 9 will connect to bone 7 parent, while it should connect to bone 7. I believe there's a check if the bone has connected picture and this check ignores some condition

As a result I have string root-bone_006-bone_007-bone_009-bone_011-ext_eye_brow_000

But it must be smth like root-bone_006-bone_007-bone_009-ext_eye_open+ext_pupil-bone_011-ext_eye_brow_000

I also removed 282 string because it caused the script to fail if not result: print('[WARNING] Unsupported bone hierarchy animation')

return

nemyagky commented 1 year ago

Perhaps it would be ideal to see a string root=>bone_006=>bone_007=>bone_009+ext_eye_open+ext_pupil=>bone_011+ext_eye_brow_000

And thank you very much for your tool!!! In the entire internet, your code is the only one sprite => spine converter