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 KiB) 14 번째 다운로드
사용자 아바타
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