Fixes the stopping of animation effects in bbcode after appending

(cherry picked from commit 88b30a29bf)
This commit is contained in:
Umang Kalra 2020-06-13 00:20:39 +05:30 committed by Rémi Verschelde
parent 1b58f94296
commit 1d0c39e395
1 changed files with 11 additions and 0 deletions

View File

@ -2458,6 +2458,17 @@ Error RichTextLabel::append_bbcode(const String &p_bbcode) {
}
}
Vector<ItemFX *> fx_items;
for (List<Item *>::Element *E = main->subitems.front(); E; E = E->next()) {
Item *subitem = static_cast<Item *>(E->get());
_fetch_item_fx_stack(subitem, fx_items);
if (fx_items.size()) {
set_process_internal(true);
break;
}
}
return OK;
}