Label ignore sort children.

This commit is contained in:
bmanGH 2014-03-30 20:45:44 +08:00
parent bf0240114d
commit e2db57006b
1 changed files with 1 additions and 5 deletions

View File

@ -771,11 +771,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)