From facafeb19a18fc16263c80d20d60e458a1a59516 Mon Sep 17 00:00:00 2001 From: LikeLakers2 <1008889+LikeLakers2@users.noreply.github.com> Date: Fri, 28 Jun 2019 19:23:57 -0400 Subject: Fix an EditorPropertyResource bug where clicking on the flat buttons would not select the property in the inspector --- editor/editor_properties.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp index 8e4ec47435..c8bcce6e55 100644 --- a/editor/editor_properties.cpp +++ b/editor/editor_properties.cpp @@ -2808,6 +2808,7 @@ EditorPropertyResource::EditorPropertyResource() { assign->set_drag_forwarding(this); assign->connect("draw", this, "_button_draw"); hbc->add_child(assign); + add_focusable(assign); preview = memnew(TextureRect); preview->set_expand(true); @@ -2828,6 +2829,7 @@ EditorPropertyResource::EditorPropertyResource() { edit->connect("pressed", this, "_update_menu"); hbc->add_child(edit); edit->connect("gui_input", this, "_button_input"); + add_focusable(edit); file = NULL; scene_tree = NULL; -- cgit v1.2.3