[cpp] Fixed parsing of points in skin. See #1168.

[c] Fixed c unit tests.
This commit is contained in:
badlogic 2018-09-05 15:31:28 +02:00
parent 642687f882
commit 1d3d425028
2 changed files with 5 additions and 2 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

@ -463,7 +463,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;