polluxchi

I'm working with cocos2dx spine 3.6. I used a spine json file in my game,and the clipping featrue doesn't work.

I noticed that in the c++ file "SkeletonRenderer.cpp" the method ‘spSkeletonClipping_clipEnd’ is called immediately after spSkeletonClipping_clipStart. In fact, the cilp mehods in (SkeletonClipping.c) haven't been called in any cases.
case SP_ATTACHMENT_CLIPPING: {
spClippingAttachment* clip = (spClippingAttachment*)slot->attachment;
spSkeletonClipping_clipStart(_clipper, slot, clip);
}
default:
spSkeletonClipping_clipEnd(_clipper, slot);
continue;
}
is there any problem in my opreating? Does anyone else has the same problem like me?

here is my resource with this problem.
Вложения
virus2.zip
(24.45 КБ) Скачиваний: 19
Аватара пользователя
polluxchi
Сообщения: 1

badlogic

Sorry for the trouble and thanks for the repro. It was indeed an issue in the code you posted. I've fixed the issue in the 3.6 and 3.7-beta branch [cocos2dx] Clipping doesn't work if clip ends before last slot · #984
Аватара пользователя
badlogic

Mario
Сообщения: 979


Вернуться в Bugs