浏览代码

Merge pull request #30174 from LikeLakers2/resourcepropertyeditor-selection-bugfix

Fix an EditorPropertyResource bug where clicking on the flat buttons …
Rémi Verschelde 6 年之前
父节点
当前提交
ba6b0dc38d
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      editor/editor_properties.cpp

+ 2 - 0
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;