mirror of https://github.com/axmolengine/axmol.git
Merge pull request #6614 from Dhilan007/v3_labelhotfixed
closed #4906: Label created with system font is still visible when its opacity is 0
This commit is contained in:
commit
e521d7bc73
|
@ -934,6 +934,7 @@ void Label::createSpriteWithFontDefinition()
|
|||
Node::addChild(_textSprite,0,Node::INVALID_TAG);
|
||||
|
||||
_textSprite->updateDisplayedColor(_displayedColor);
|
||||
_textSprite->updateDisplayedOpacity(_displayedOpacity);
|
||||
}
|
||||
|
||||
void Label::setFontDefinition(const FontDefinition& textDefinition)
|
||||
|
|
Loading…
Reference in New Issue