mirror of https://github.com/axmolengine/axmol.git
Set global Z value of label debug layer to be the same as the parent label to fix display issue (#378)
This commit is contained in:
parent
99cf51df55
commit
eff5d1705b
|
@ -2441,6 +2441,10 @@ void Label::setGlobalZOrder(float globalZOrder)
|
|||
{
|
||||
_underlineNode->setGlobalZOrder(globalZOrder);
|
||||
}
|
||||
|
||||
#if CC_LABEL_DEBUG_DRAW
|
||||
_debugDrawNode->setGlobalZOrder(globalZOrder);
|
||||
#endif
|
||||
}
|
||||
|
||||
float Label::getRenderingFontSize()const
|
||||
|
|
Loading…
Reference in New Issue