diff options
| author | Paulb23 | 2017-09-24 16:10:17 +0100 |
|---|---|---|
| committer | Paulb23 | 2017-09-24 17:22:47 +0100 |
| commit | 8b80e9733821cbe2ae0701edf11a312722c7d306 (patch) | |
| tree | f91c5504667f3ecde23a1a9d16a8470dd648200b /scene/gui/line_edit.cpp | |
| parent | 4ac7f5acf98ad08fb826979a0baa3d5e731a73a3 (diff) | |
| download | godot-8b80e9733821cbe2ae0701edf11a312722c7d306.tar.gz godot-8b80e9733821cbe2ae0701edf11a312722c7d306.tar.zst godot-8b80e9733821cbe2ae0701edf11a312722c7d306.zip | |
Fixed caret blink and speed resetting in scenes, issue 10764
Diffstat (limited to 'scene/gui/line_edit.cpp')
| -rw-r--r-- | scene/gui/line_edit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp index 7493ea95a..aa5ae089b 100644 --- a/scene/gui/line_edit.cpp +++ b/scene/gui/line_edit.cpp @@ -534,7 +534,7 @@ void LineEdit::_notification(int p_what) { switch (p_what) { #ifdef TOOLS_ENABLED case NOTIFICATION_ENTER_TREE: { - if (Engine::get_singleton()->is_editor_hint()) { + if (!get_tree()->is_node_being_edited(this)) { cursor_set_blink_enabled(EDITOR_DEF("text_editor/cursor/caret_blink", false)); cursor_set_blink_speed(EDITOR_DEF("text_editor/cursor/caret_blink_speed", 0.65)); |
