Selaa lähdekoodia

Merge pull request #39485 from theoway/append_bbcode_animation_bug

Fixes the stopping of animation effects in bbcode text after appending
Rémi Verschelde 5 vuotta sitten
vanhempi
commit
c6f48f5bfc
1 muutettua tiedostoa jossa 11 lisäystä ja 0 poistoa
  1. 11 0
      scene/gui/rich_text_label.cpp

+ 11 - 0
scene/gui/rich_text_label.cpp

@@ -2412,6 +2412,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;
 }