Skip to content

Commit

Permalink
Collapse Resource Preview Properly
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanfranke committed Oct 28, 2020
1 parent 6328f7a commit 98c46cb
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 @@ -2898,6 +2898,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 98c46cb

Please sign in to comment.