mirror of
https://github.com/godotengine/godot.git
synced 2024-12-15 10:12:40 +08:00
Add error for invalid RichTextLabel.install_effect
This commit is contained in:
parent
667cef39b4
commit
d3a1e82025
@ -4883,11 +4883,10 @@ void RichTextLabel::install_effect(const Variant effect) {
|
||||
Ref<RichTextEffect> rteffect;
|
||||
rteffect = effect;
|
||||
|
||||
if (rteffect.is_valid()) {
|
||||
custom_effects.push_back(effect);
|
||||
if ((!text.is_empty()) && use_bbcode) {
|
||||
parse_bbcode(text);
|
||||
}
|
||||
ERR_FAIL_COND_MSG(rteffect.is_null(), "Invalid RichTextEffect resource.");
|
||||
custom_effects.push_back(effect);
|
||||
if ((!text.is_empty()) && use_bbcode) {
|
||||
parse_bbcode(text);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user