Merge pull request #93721 from semensanyok/fix-RichTextLabel-fade-start-index

Fix RichTextLabel fade set `start_index` to command offset
This commit is contained in:
Rémi Verschelde 2024-07-09 16:47:10 +02:00
commit 17e7253ea8
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 2 additions and 2 deletions

View File

@ -4947,10 +4947,10 @@ void RichTextLabel::append_text(const String &p_bbcode) {
tag_stack.push_front("outline_size");
} else if (bbcode_name == "fade") {
int start_index = 0;
int start_index = brk_pos;
OptionMap::Iterator start_option = bbcode_options.find("start");
if (start_option) {
start_index = start_option->value.to_int();
start_index += start_option->value.to_int();
}
int length = 10;