Merge pull request #47486 from bruvzg/rtl_effects

RichTextLabel: On custom effect change, parse bbcode only if it's enabled and not empty.
This commit is contained in:
Rémi Verschelde 2021-03-30 09:58:23 +02:00 committed by GitHub
commit 655a913e22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -3756,7 +3756,9 @@ void RichTextLabel::set_effects(const Vector<Variant> &effects) {
custom_effects.push_back(effect);
}
parse_bbcode(bbcode);
if ((bbcode != "") && use_bbcode) {
parse_bbcode(bbcode);
}
}
Vector<Variant> RichTextLabel::get_effects() {
@ -3773,7 +3775,9 @@ void RichTextLabel::install_effect(const Variant effect) {
if (rteffect.is_valid()) {
custom_effects.push_back(effect);
parse_bbcode(bbcode);
if ((bbcode != "") && use_bbcode) {
parse_bbcode(bbcode);
}
}
}