Skip to content

Commit

Permalink
Trigger re-draw when FlxText.text is set to empty string (#2846)
Browse files Browse the repository at this point in the history
* Fix for #2845

* Simplified `textField.text.length >= 0`
  • Loading branch information
UncertainProd authored Jul 30, 2023
1 parent d9ddac7 commit a552be1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flixel/text/FlxText.hx
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ class FlxText extends FlxSprite
}
}

if (textField != null && textField.text != null && textField.text.length > 0)
if (textField != null && textField.text != null)
{
// Now that we've cleared a buffer, we need to actually render the text to it
copyTextFormat(_defaultFormat, _formatAdjusted);
Expand Down

0 comments on commit a552be1

Please sign in to comment.