mirror of
https://github.com/godotengine/godot.git
synced 2025-01-06 17:37:18 +08:00
Merge pull request #63407 from RedMser/install-effect-error
Add error for invalid RichTextLabel.install_effect
This commit is contained in:
commit
96401b48ec
@ -4883,11 +4883,10 @@ void RichTextLabel::install_effect(const Variant effect) {
|
|||||||
Ref<RichTextEffect> rteffect;
|
Ref<RichTextEffect> rteffect;
|
||||||
rteffect = effect;
|
rteffect = effect;
|
||||||
|
|
||||||
if (rteffect.is_valid()) {
|
ERR_FAIL_COND_MSG(rteffect.is_null(), "Invalid RichTextEffect resource.");
|
||||||
custom_effects.push_back(effect);
|
custom_effects.push_back(effect);
|
||||||
if ((!text.is_empty()) && use_bbcode) {
|
if ((!text.is_empty()) && use_bbcode) {
|
||||||
parse_bbcode(text);
|
parse_bbcode(text);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user