Browse Source

[c] Json parser was missing parsing of points in skins. See #1168

badlogic 7 năm trước cách đây
mục cha
commit
3a1aedc035
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      spine-c/spine-c/src/spine/SkeletonJson.c

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

@@ -891,6 +891,8 @@ spSkeletonData* spSkeletonJson_readSkeletonData (spSkeletonJson* self, const cha
 						type = SP_ATTACHMENT_PATH;
 					else if	(strcmp(typeString, "clipping") == 0)
 						type = SP_ATTACHMENT_CLIPPING;
+					else if	(strcmp(typeString, "point") == 0)
+						type = SP_ATTACHMENT_POINT;
 					else {
 						spSkeletonData_dispose(skeletonData);
 						_spSkeletonJson_setError(self, root, "Unknown attachment type: ", typeString);