summaryrefslogtreecommitdiffstats
path: root/scene/gui/text_edit.h
diff options
context:
space:
mode:
authorPaulb23 <p_batty@hotmail.co.uk>2021-08-12 19:47:29 +0100
committerPaulb23 <p_batty@hotmail.co.uk>2021-08-13 17:47:53 +0100
commit273374957b291af7bfd3524e60282b3c00512df0 (patch)
tree8f6adf3f4228f7ea204ab7bb217639480bcedb9c /scene/gui/text_edit.h
parentb6f5912174aaec1b18879b31ac1b2835c3e40f2b (diff)
downloadredot-engine-273374957b291af7bfd3524e60282b3c00512df0.tar.gz
Only update TextEdit text cache when dirty
Diffstat (limited to 'scene/gui/text_edit.h')
-rw-r--r--scene/gui/text_edit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/gui/text_edit.h b/scene/gui/text_edit.h
index 5d05e07b5d..da322a7bcd 100644
--- a/scene/gui/text_edit.h
+++ b/scene/gui/text_edit.h
@@ -151,6 +151,8 @@ private:
};
private:
+ bool is_dirty = false;
+
mutable Vector<Line> text;
Ref<Font> font;
int font_size = -1;