|
@@ -253,7 +253,6 @@ namespace spine {
|
|
|
}
|
|
|
|
|
|
void SkeletonRenderer::draw (Renderer* renderer, const Mat4& transform, uint32_t transformFlags) {
|
|
|
- _isAutoCulled = false;
|
|
|
// Early exit if the skeleton is invisible
|
|
|
if (getDisplayedOpacity() == 0 || _skeleton->getColor().a == 0){
|
|
|
return;
|
|
@@ -274,11 +273,9 @@ namespace spine {
|
|
|
const cocos2d::Rect brect = computeBoundingRect(worldCoords, coordCount / 2);
|
|
|
_boundingRect = brect;
|
|
|
|
|
|
- const bool autoCullingEnable = true;
|
|
|
- if (autoCullingEnable && camera && cullRectangle(transform, brect, *camera))
|
|
|
+ if (camera && cullRectangle(transform, brect, *camera))
|
|
|
{
|
|
|
VLA_FREE(worldCoords);
|
|
|
- _isAutoCulled = true;
|
|
|
return;
|
|
|
}
|
|
|
#endif
|
|
@@ -621,10 +618,6 @@ namespace spine {
|
|
|
}
|
|
|
|
|
|
|
|
|
- bool SkeletonRenderer::isAutoCulled () const {
|
|
|
- return _isAutoCulled;
|
|
|
- }
|
|
|
-
|
|
|
void SkeletonRenderer::drawDebug (Renderer* renderer, const Mat4 &transform, uint32_t transformFlags) {
|
|
|
|
|
|
#if !defined(USE_MATRIX_STACK_PROJECTION_ONLY)
|