RichTextLabel: On custom effect change, parse bbcode only if it's enabled and not empty.
(cherry picked from commit 9f73abfa9f
)
This commit is contained in:
parent
724a18cf72
commit
d844e72157
1 changed files with 6 additions and 2 deletions
|
@ -2706,7 +2706,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() {
|
||||
|
@ -2723,7 +2725,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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue