From e260e3872cb08c12c46981a6c8b7d2115a6a405c Mon Sep 17 00:00:00 2001 From: Paulb23 Date: Wed, 8 Jun 2016 14:02:39 +0100 Subject: [PATCH] Caret blink no longer updates when hidden, issue 5100 --- scene/gui/text_edit.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 18ee93ade12..3e374ef8883 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -3261,7 +3261,9 @@ void TextEdit::_reset_caret_blink_timer() { void TextEdit::_toggle_draw_caret() { draw_caret = !draw_caret; - update(); + if (is_visible()) { + update(); + } } void TextEdit::_update_caches() {