cocos2dx 3.0 RC2 Label Opacity not working when not create _textSprite

It is a bug when create Label and setOpacity

like

Label *test = Label::createWithSystem…
test->setOpacity(0);
this->addChild(test);

This is not working…

To fix it at Label.cpp

void Label::createSpriteWithFontDefinition()
{
    _currentLabelType = LabelType::STRING_TEXTURE;

    auto texture = new Texture2D;
    texture->initWithString(_originalUTF8String.c_str(),_fontDefinition);

    _textSprite = Sprite::createWithTexture(texture);
    _textSprite->setAnchorPoint(Point::ANCHOR_BOTTOM_LEFT);
    this->setContentSize(_textSprite->getContentSize());
    texture->release();
    if (_blendFuncDirty)
    {
        _textSprite->setBlendFunc(_blendFunc);
    }

    Node::addChild(_textSprite,0,Node::INVALID_TAG);

    _textSprite->updateDisplayedColor(_displayedColor);
    _textSprite->updateDisplayedOpacity(_displayedOpacity);  <---add this
}

Can anyone send pull request to git?

Thanks a lot

I found this bug, too!

Thank you~

I found this bug as well. The fix appears to work as expected. Thanks!!!

When will this be patched?