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.
Adjuntos
virus2.zip
(24.45 KiB) 67 veces
Avatar de Usuario
polluxchi
Mensajes: 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
Avatar de Usuario
badlogic

Mario
Mensajes: 1052


Volver a Bugs