diff --git a/cocos/editor-support/cocostudio/CCBatchNode.cpp b/cocos/editor-support/cocostudio/CCBatchNode.cpp index 7219969b57..0f00332265 100644 --- a/cocos/editor-support/cocostudio/CCBatchNode.cpp +++ b/cocos/editor-support/cocostudio/CCBatchNode.cpp @@ -163,6 +163,11 @@ void BatchNode::visit() void BatchNode::draw() { + if (_children == nullptr) + { + return; + } + CC_NODE_DRAW_SETUP(); for(auto object : *_children)