Hi there
We're using 2.1.27 version of Spine. When we use Blend feature , and when we export, the JSON file has this structure :
"slots": [
{ "name": "r_hand_3", "bone": "r_hand_3", "attachment": "r_hand_3" },
{ "name": "circle_1", "bone": "circle_1", "blend": "additive" },
......................................................................
As you see , blend value is a string and store in keyword "blend". But in source code SkeletonJson.c we found this code :
slotData->additiveBlending = Json_getInt(slotMap, "additive", 0);
It try to get the integer value of keyword "additive", then it never get it
So i think this is a bug of Spine C runtimes.
Or maybe because i use the old version of Spine C runtime ? :wonder: :wonder: :wonder: :wonder:
Here my temporary fix :
char* strblend = Json_getString(slotMap, "blend", "none");
int compare = strcmp(strblend, "additive");
slotData->additiveBlending = (compare == 0);