mirror of https://github.com/axmolengine/axmol.git
BMFont need to refresh size by refresh the string
This commit is contained in:
parent
a456a3b917
commit
d38b802780
|
@ -94,10 +94,10 @@ void TextBMFont::setFntFile(const std::string& fileName)
|
|||
|
||||
void TextBMFont::setString(const std::string& value)
|
||||
{
|
||||
if (value == _labelBMFontRenderer->getString())
|
||||
{
|
||||
return;
|
||||
}
|
||||
//if (value == _labelBMFontRenderer->getString())
|
||||
//{
|
||||
// return;
|
||||
//}
|
||||
_stringValue = value;
|
||||
if (!_fntFileHasInit)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue