Merge branch '3.7-beta' into 3.7-beta-cpp

This commit is contained in:
badlogic 2018-09-05 15:31:42 +02:00
commit dce7731855
4 changed files with 15 additions and 10 deletions

View File

@ -3,7 +3,8 @@ project(spine_unit_test)
set(CMAKE_INSTALL_PREFIX "./")
set(CMAKE_VERBOSE_MAKEFILE ON)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DKANJI_MEMTRACE -DUSE_CPP11_MUTEX")
set (CMAKE_CXX_FLAGS "-Wall -Wextra -Wnon-virtual-dtor -pedantic -std=c++03 -fno-rtti -DKANJI_MEMTRACE -DUSE_CPP11_MUTEX")
#########################################################
# set includes

View File

@ -894,6 +894,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);

View File

@ -467,7 +467,9 @@ SkeletonData *SkeletonJson::readSkeletonData(const char *json) {
type = AttachmentType_Path;
} else if (strcmp(typeString, "clipping") == 0) {
type = AttachmentType_Clipping;
} else {
} else if (strcmp(typeString, "point") == 0) {
type = AttachmentType_Point;
}else {
delete skeletonData;
setError(root, "Unknown attachment type: ", typeString);
return NULL;