Collapse Resource Preview Properly

(cherry picked from commit 98c46cbf26)
This commit is contained in:
Nathan Franke 2020-10-28 05:26:02 -05:00 committed by Rémi Verschelde
parent c5e8a81737
commit 1001bea7ac
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 0 deletions

View File

@ -2763,6 +2763,7 @@ void EditorPropertyResource::update_property() {
if (res == RES()) {
assign->set_icon(Ref<Texture>());
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"));