Merge pull request #43155 from nathanfranke/collapse-resource-preview

Collapse Resource Preview Properly
This commit is contained in:
Rémi Verschelde 2021-04-01 00:16:44 +02:00 committed by GitHub
commit 54a690ead1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"));