summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEoin O'Neill <eoinoneill1991@gmail.com>2021-05-13 19:48:35 -0700
committerEoin O'Neill <eoinoneill1991@gmail.com>2021-05-13 19:59:08 -0700
commitc4f976b38bb374add8c14d650b23b5bf43669605 (patch)
treef143444151d7b6cdf551db21fa824a254e503d2c
parent0f5fddbdc061179ad131471a0eab5460ca1dd4d6 (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.cpp9
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();
+ }
}
}
}