diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-05-14 09:44:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-14 09:44:12 +0200 |
commit | 420e75f2779b63bdb63d92b7b682944fa5ac8059 (patch) | |
tree | ac210e250e0aeb5de26efddb343e2bf29ee5215c | |
parent | a82e51ddc24d33ecd899a1fd0439e69510091ef5 (diff) | |
parent | c4f976b38bb374add8c14d650b23b5bf43669605 (diff) |
Merge pull request #48711 from Eoin-ONeill-Yokai/bug47687
Fix rich text label effects processing even when the node is invisible.
-rw-r--r-- | scene/gui/rich_text_label.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp index e8a908c30e..2800ab0442 100644 --- a/scene/gui/rich_text_label.cpp +++ b/scene/gui/rich_text_label.cpp @@ -1432,10 +1432,11 @@ void RichTextLabel::_notification(int p_what) { } } break; case NOTIFICATION_INTERNAL_PROCESS: { - float dt = get_process_delta_time(); - - _update_fx(main, dt); - update(); + if (is_visible_in_tree()) { + float dt = get_process_delta_time(); + _update_fx(main, dt); + update(); + } } } } |