From c86ab37685b163a4feb13ea1486aecbca64be4bb Mon Sep 17 00:00:00 2001 From: bmanGH Date: Sun, 30 Mar 2014 20:45:44 +0800 Subject: [PATCH] Label ignore sort children. --- cocos/2d/CCLabel.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cocos/2d/CCLabel.cpp b/cocos/2d/CCLabel.cpp index 99572b4e93..e972ef7d8f 100644 --- a/cocos/2d/CCLabel.cpp +++ b/cocos/2d/CCLabel.cpp @@ -788,11 +788,7 @@ void Label::addChild(Node * child, int zOrder/* =0 */, int tag/* =0 */) void Label::sortAllChildren() { - // fix crash when sort children while label type is STRING_TEXTURE - // because of the only one child sprite is not add with batch mode - if (_currentLabelType != LabelType::STRING_TEXTURE) { - SpriteBatchNode::sortAllChildren(); - } + // Label ignore sort children } void Label::setLabelEffect(LabelEffect effect,const Color3B& effectColor)