- Uređeno
CLI exports for 2.1.27
With latest Spine 3.4.02 CLI export spine file (2.1.21) into json. Width/Height are always zero, but with CLI 2.x it looks fine. Why?
Are you saying you are exporting a Spine project saved with Spine 2.1.12 using Spine 3.4.02? That may be a reason why width/height are zero. In general, relying on width/height in the JSON is not a good idea anyways, as it may not represent what you want, e.g. you have no default skin, or parts of the default skin are missing etc.
The better option is to calculate the Skeleton's bounding box at runtime, using Skeleton#getBounds() (or the equivalent) of your preferred runtime.
I don't use it, just to let you know you have such bug.