Skip to content

Commit

Permalink
Merge pull request #49174 from NoFr1ends/fix-richtext-theme-update-3
Browse files Browse the repository at this point in the history
[RichTextLabel] Fix not updating fonts when parent theme changes
  • Loading branch information
akien-mga authored May 31, 2021
2 parents d9cfe53 + 1b7c2a1 commit 7713f33
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scene/gui/rich_text_label.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -959,6 +959,7 @@ void RichTextLabel::_notification(int p_what) {
update();

} break;
case NOTIFICATION_THEME_CHANGED:
case NOTIFICATION_ENTER_TREE: {
if (bbcode != "") {
set_bbcode(bbcode);
Expand All @@ -967,10 +968,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: {
_validate_line_caches(main);
Expand Down

0 comments on commit 7713f33

Please sign in to comment.