mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[cocos2dx] Temporarily enable culling by default.
This commit is contained in:
parent
727b3866d3
commit
e5b88aa4c0
@ -274,7 +274,7 @@ namespace spine {
|
|||||||
const cocos2d::Rect brect = computeBoundingRect(worldCoords, coordCount / 2);
|
const cocos2d::Rect brect = computeBoundingRect(worldCoords, coordCount / 2);
|
||||||
_boundingRect = brect;
|
_boundingRect = brect;
|
||||||
|
|
||||||
const bool autoCullingEnable = cocos2d::Director::getInstance()->isAutoCullingEnable();
|
const bool autoCullingEnable = true;
|
||||||
if (autoCullingEnable && camera && cullRectangle(transform, brect, *camera))
|
if (autoCullingEnable && camera && cullRectangle(transform, brect, *camera))
|
||||||
{
|
{
|
||||||
VLA_FREE(worldCoords);
|
VLA_FREE(worldCoords);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user