diff options
author | Eoin O'Neill <eoinoneill1991@gmail.com> | 2021-05-13 19:48:35 -0700 |
---|---|---|
committer | Eoin O'Neill <eoinoneill1991@gmail.com> | 2021-05-13 19:59:08 -0700 |
commit | c4f976b38bb374add8c14d650b23b5bf43669605 (patch) | |
tree | f143444151d7b6cdf551db21fa824a254e503d2c | |
parent | 0f5fddbdc061179ad131471a0eab5460ca1dd4d6 (diff) |
Attempt to fix rich text label effects processing even when
the node is invisible.
ISSUE:47687
-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(); + } } } } |