Skip to content

Commit

Permalink
Merge pull request #43155 from nathanfranke/collapse-resource-preview
Browse files Browse the repository at this point in the history
Collapse Resource Preview Properly
  • Loading branch information
akien-mga committed Mar 31, 2021
2 parents bb90d3a + 98c46cb commit 54a690e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions editor/editor_properties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2975,6 +2975,7 @@ void EditorPropertyResource::update_property() {
if (res == RES()) {
assign->set_icon(Ref<Texture2D>());
assign->set_text(TTR("[empty]"));
assign->set_custom_minimum_size(Size2(1, 1));
} else {
assign->set_icon(EditorNode::get_singleton()->get_object_icon(res.operator->(), "Object"));

Expand Down

0 comments on commit 54a690e

Please sign in to comment.