Przeglądaj źródła

Hull length is int.

NathanSweet 11 lat temu
rodzic
commit
5848973f0b
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      spine-c/src/spine/SkeletonJson.c

+ 2 - 2
spine-c/src/spine/SkeletonJson.c

@@ -564,7 +564,7 @@ spSkeletonData* spSkeletonJson_readSkeletonData (spSkeletonJson* self, const cha
 							mesh->a = toColor(color, 3);
 						}
 
-						mesh->hullLength = Json_getFloat(attachmentMap, "hull", 0);
+						mesh->hullLength = Json_getInt(attachmentMap, "hull", 0);
 
 						entry = Json_getItem(attachmentMap, "edges");
 						if (entry) {
@@ -635,7 +635,7 @@ spSkeletonData* spSkeletonJson_readSkeletonData (spSkeletonJson* self, const cha
 							mesh->a = toColor(color, 3);
 						}
 
-						mesh->hullLength = Json_getFloat(attachmentMap, "hull", 0);
+						mesh->hullLength = Json_getInt(attachmentMap, "hull", 0);
 
 						entry = Json_getItem(attachmentMap, "edges");
 						if (entry) {