Fix not updating fonts when parent theme changes

Reparsing the bbcode content when we receieve a theme changed
notification just like we already do in ENTER_TREE.

Resolves #49089

(cherry picked from commit 1b7c2a1428)
This commit is contained in:
Lynx 2021-05-28 20:42:54 +02:00 committed by Rémi Verschelde
parent f901049a0d
commit 2ce5515762
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -965,6 +965,7 @@ void RichTextLabel::_notification(int p_what) {
update();
} break;
case NOTIFICATION_THEME_CHANGED:
case NOTIFICATION_ENTER_TREE: {
if (bbcode != "")
@ -973,11 +974,6 @@ void RichTextLabel::_notification(int p_what) {
main->first_invalid_line = 0; //invalidate ALL
update();
} break;
case NOTIFICATION_THEME_CHANGED: {
update();
} break;
case NOTIFICATION_DRAW: {