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
This commit is contained in:
parent
e9909b763a
commit
1b7c2a1428
@ -959,6 +959,7 @@ void RichTextLabel::_notification(int p_what) {
|
|||||||
update();
|
update();
|
||||||
|
|
||||||
} break;
|
} break;
|
||||||
|
case NOTIFICATION_THEME_CHANGED:
|
||||||
case NOTIFICATION_ENTER_TREE: {
|
case NOTIFICATION_ENTER_TREE: {
|
||||||
if (bbcode != "") {
|
if (bbcode != "") {
|
||||||
set_bbcode(bbcode);
|
set_bbcode(bbcode);
|
||||||
@ -967,10 +968,6 @@ void RichTextLabel::_notification(int p_what) {
|
|||||||
main->first_invalid_line = 0; //invalidate ALL
|
main->first_invalid_line = 0; //invalidate ALL
|
||||||
update();
|
update();
|
||||||
|
|
||||||
} break;
|
|
||||||
case NOTIFICATION_THEME_CHANGED: {
|
|
||||||
update();
|
|
||||||
|
|
||||||
} break;
|
} break;
|
||||||
case NOTIFICATION_DRAW: {
|
case NOTIFICATION_DRAW: {
|
||||||
_validate_line_caches(main);
|
_validate_line_caches(main);
|
||||||
|
Loading…
Reference in New Issue
Block a user