mirror of
https://github.com/godotengine/godot.git
synced 2025-04-13 01:00:35 +08:00
Merge pull request #102402 from bruvzg/tl_overrun
[TextServer] Fix line/word breaks not always updated when applying overrun.
This commit is contained in:
commit
e305f45678
@ -5308,6 +5308,9 @@ void TextServerAdvanced::_shaped_text_overrun_trim_to_width(const RID &p_shaped_
|
||||
if (!sd->valid.is_set()) {
|
||||
_shaped_text_shape(p_shaped_line);
|
||||
}
|
||||
if (!sd->line_breaks_valid) {
|
||||
_shaped_text_update_breaks(p_shaped_line);
|
||||
}
|
||||
|
||||
sd->text_trimmed = false;
|
||||
sd->overrun_trim_data.ellipsis_glyph_buf.clear();
|
||||
|
Loading…
x
Reference in New Issue
Block a user