From 88b30a29bf6f5497b1f42e33c6dfbff795fd5585 Mon Sep 17 00:00:00 2001 From: Umang Kalra Date: Sat, 13 Jun 2020 00:20:39 +0530 Subject: [PATCH] Fixes the stopping of animation effects in bbcode after appending --- scene/gui/rich_text_label.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp index 2f5af0eda0d..c914991cd3d 100644 --- a/scene/gui/rich_text_label.cpp +++ b/scene/gui/rich_text_label.cpp @@ -2409,6 +2409,17 @@ Error RichTextLabel::append_bbcode(const String &p_bbcode) { } } + Vector fx_items; + for (List::Element *E = main->subitems.front(); E; E = E->next()) { + Item *subitem = static_cast(E->get()); + _fetch_item_fx_stack(subitem, fx_items); + + if (fx_items.size()) { + set_process_internal(true); + break; + } + } + return OK; }