Hello,
I've encountered some odd behavior with the JS runtime, while making an animation which a scale of 0,0 in setup pose.
When loading the bones for a skeleton with JS runtime, it uses the following code at line 1160 and 1161:
boneData.scaleX = boneMap["scaleX"] || 1;
boneData.scaleY = boneMap["scaleY"] || 1;
and it also does the same with attachments at line 1239 and 1240:
attachment.scaleX = map["scaleX"] || 1;
attachment.scaleY = map["scaleY"] || 1;
That means with the JS runtime (haven't checked the others), that it is not possible to make a "hidden" bone or attachment with a scale of 0,0.
I think a better solution would be to change the code to the following:
boneData.scaleX = boneMap["scaleX"] != null ? boneMap["scaleX"] : 1;
boneData.scaleY = boneMap["scaleY"] != null ? boneMap["scaleY"] : 1;
attachment.scaleX = map["scaleX"] != null ? map["scaleX"] : 1;
attachment.scaleY = map["scaleY"] != null ? map["scaleY"] : 1;
Keep up the good work ๐
Regards,
SpineBoy