summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsemensanyok <semenkomissarov@gmail.com>2024-06-28 23:15:21 +0200
committersemensanyok <semenkomissarov@gmail.com>2024-06-28 23:15:21 +0200
commit5dffb9b5e69e5f027c1c6d821ebfa51107936c89 (patch)
treeb05918ebf7997cfa818f9aeb461ca9a1ea4f56fd
parent811ce36c6090013f1a48676c0388892bf1621288 (diff)
downloadredot-engine-5dffb9b5e69e5f027c1c6d821ebfa51107936c89.tar.gz
fix RichTextLabel fade set start_index to command offset
-rw-r--r--scene/gui/rich_text_label.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp
index 416a7fafb6..56c9e7ccf9 100644
--- a/scene/gui/rich_text_label.cpp
+++ b/scene/gui/rich_text_label.cpp
@@ -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;