diff options
| author | Juan Linietsky | 2017-08-19 10:50:54 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-08-19 10:51:56 -0300 |
| commit | bacfe7a557838832a51add41e1d2ca7d08b886a7 (patch) | |
| tree | 22be5c0a308f2940b866afc1aea5755fa873168a /scene/gui/label.cpp | |
| parent | 5d85108f9448ac47b871f19c8af4652b7d3dea9d (diff) | |
| download | godot-bacfe7a557838832a51add41e1d2ca7d08b886a7.tar.gz godot-bacfe7a557838832a51add41e1d2ca7d08b886a7.tar.zst godot-bacfe7a557838832a51add41e1d2ca7d08b886a7.zip | |
Fixes to label and code editor to make editing code hopefully fast again.
Diffstat (limited to 'scene/gui/label.cpp')
| -rw-r--r-- | scene/gui/label.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scene/gui/label.cpp b/scene/gui/label.cpp index b2afca876..84074f96a 100644 --- a/scene/gui/label.cpp +++ b/scene/gui/label.cpp @@ -493,7 +493,10 @@ void Label::regenerate_word_cache() { minsize.height = (font->get_height() * line_count) + (line_spacing * (line_count - 1)); } - minimum_size_changed(); + if (!autowrap || !clip) { + //helps speed up some labels that may change a lot, as no resizing is requested. Do not change. + minimum_size_changed(); + } word_cache_dirty = false; } |
