mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-14 19:11:36 +08:00
[cpp] Fixed parsing of points in skin. See #1168.
[c] Fixed c unit tests.
This commit is contained in:
parent
642687f882
commit
1d3d425028
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user