From 8cbb154466c4555f8ea44ebb9ea98f8a0e4c9877 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Fri, 1 Jul 2016 10:55:35 -0300 Subject: Color picker was getting too much focus, made it get not as much focus. This abuse of focus was the original culprit of #5354 --- tools/editor/property_editor.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'tools/editor/property_editor.cpp') diff --git a/tools/editor/property_editor.cpp b/tools/editor/property_editor.cpp index 246785932..e0dc76e73 100644 --- a/tools/editor/property_editor.cpp +++ b/tools/editor/property_editor.cpp @@ -612,6 +612,7 @@ bool CustomPropertyEditor::edit(Object* p_owner,const String& p_name,Variant::Ty color_picker->set_edit_alpha(hint!=PROPERTY_HINT_COLOR_NO_ALPHA); color_picker->set_color(v); set_size( Size2(300*EDSCALE, color_picker->get_combined_minimum_size().height+10*EDSCALE)); + color_picker->set_focus_on_line_edit(); /* int ofs=80; int m=10; -- cgit v1.2.3-70-g09d2