From 0e7c2ea33107a1e9601b7b13a4e237f5678a7eec Mon Sep 17 00:00:00 2001 From: Eoin O'Neill Date: Thu, 13 May 2021 19:48:35 -0700 Subject: [PATCH] Attempt to fix rich text label effects processing even when the node is invisible. ISSUE:47687 (cherry picked from commit c4f976b38bb374add8c14d650b23b5bf43669605) --- scene/gui/rich_text_label.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp index 2c29f2722d0..9d4c5973769 100644 --- a/scene/gui/rich_text_label.cpp +++ b/scene/gui/rich_text_label.cpp @@ -1022,10 +1022,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(); + } } } }