From 8f6b56cfda4ec412ae1fdd66e5e579b02211ddb2 Mon Sep 17 00:00:00 2001 From: Paulb23 Date: Mon, 20 Jun 2016 20:29:58 +0100 Subject: [PATCH] Fixed caret not drawing on focus regain --- scene/gui/text_edit.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 7fbd412de88..5e18da32aac 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -1209,6 +1209,9 @@ void TextEdit::_notification(int p_what) { } break; case NOTIFICATION_FOCUS_ENTER: { + if (!caret_blink_enabled) { + draw_caret = true; + } if (OS::get_singleton()->has_virtual_keyboard()) OS::get_singleton()->show_virtual_keyboard(get_text(),get_global_rect());