From 1d0c39e395ca62a15c267a260ecd077777fda427 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 (cherry picked from commit 88b30a29bf6f5497b1f42e33c6dfbff795fd5585) --- 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 279daf7d2cb..5fd664434d0 100644 --- a/scene/gui/rich_text_label.cpp +++ b/scene/gui/rich_text_label.cpp @@ -2458,6 +2458,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; }