-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove_paragraph(0) in RichTextLabel only works once #85096
Comments
Confirmed. Related to godot/scene/gui/rich_text_label.cpp Lines 3389 to 3391 in 80de898
Comment them and it works as expected. cc @bruvzg |
Not sure if this is possibly related, but I have a PR relating to crashes from RichTextLabel as well |
If the |
RTL have two ways to set its content:
Mixing both is not supported (setting text will override everything else, and none of the other methods should affect text). |
Godot version
80de898
System information
Window 10 - 4.2.rc
Issue description
Calling "remove_paragraph(0)" on a RichTextLabel should remove the first line of text in the label. However, it doesn't seem to work more than once in a row. Even calling "remove_paragraph(1)" actually works better since it always removes the 2nd line even when called repeatedly.
Steps to reproduce
Expected:
Each time you call "remove_paragraph(0)", the first line should be deleted.
Actual:
The first line is deleted the first time you call "remove_paragraph(0)", but each subsequent time you do it, nothing happens.
Example project attached makes it easy to test. RichTextLabel has been set up already, along with buttons to call "remove_paragraph" when pressed.
Minimal reproduction project
RichTextRemoveParagraph.zip
The text was updated successfully, but these errors were encountered: