bendmorris / spinehaxe

Spine runtime for Haxe 3. Based on current AS3/libgdx runtimes.
Other
64 stars 28 forks source link

DrawOrder does not work #16

Closed slangeder closed 9 years ago

slangeder commented 9 years ago

See SkeletonJson.hx line 327: var drawOrderValues:Dynamic = map.getNode("draworder");

In the latest spine exports the nodes are called "drawOrder" instead of "draworder".

bendmorris commented 9 years ago

Are you using the latest version?

https://github.com/bendmorris/spinehaxe/blob/master/spinehaxe/SkeletonJson.hx#L485

It looks for "drawOrder" first and only falls back on "draworder" if it isn't found, which is the same behavior as the AS3 runtime (https://github.com/EsotericSoftware/spine-runtimes/blob/master/spine-as3/spine-as3/src/spine/SkeletonJson.as#L484)

slangeder commented 9 years ago

Yeah you are right.. it was my fault. I'm sorry!