From c4f976b38bb374add8c14d650b23b5bf43669605 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 --- 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 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(); + } } } }