mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
Merge branch '3.7-beta' into 3.7-beta-cpp
This commit is contained in:
commit
dce7731855
@ -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
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user