azerion / phaser-spine

A plugin for Phaser 2 that adds Spine support
MIT License
121 stars 58 forks source link

[Spine-TS] Loading Of "Blank" Spine Project Causes Bug In Other Spine Objects #75

Open shibekin69 opened 7 years ago

shibekin69 commented 7 years ago

Ok, this one took me a little longer to discover. When you have a Spine project that's got no slots/attachments visible in the editor, and you have a bunch of bones with a single slot and multiple attachments that serves as skins, when you add this in your project, this will cause other spine objects on stage to bug out and you won't be able to control them anymore.

In the previous version, this wasn't an issue.

EDIT 1: When I add in a static image attachment on the root, the problem doesn't appear.

shibekin69 commented 7 years ago

Please see sample attachment. This includes the "blank" spine project and the output to be tested. The output is 3.7.01. So in my tests, if there really is no attachment shown in the editor (hidden in the tree), this screws up loaded spine objects' positions and controls (For example: you can't control x and y properties).

If at least 1 attachment show in the editor view, this bug doesn't happen.

hidden-skins-test.zip

EDIT 1: When this happens, apparently, the spine object's root aligns to the top left corner of the screen, but you lose control over it if it were added to a group, or variable, something.