Collapse Resource Preview Properly
This commit is contained in:
parent
6328f7a45c
commit
98c46cbf26
|
@ -2898,6 +2898,7 @@ void EditorPropertyResource::update_property() {
|
||||||
if (res == RES()) {
|
if (res == RES()) {
|
||||||
assign->set_icon(Ref<Texture2D>());
|
assign->set_icon(Ref<Texture2D>());
|
||||||
assign->set_text(TTR("[empty]"));
|
assign->set_text(TTR("[empty]"));
|
||||||
|
assign->set_custom_minimum_size(Size2(1, 1));
|
||||||
} else {
|
} else {
|
||||||
assign->set_icon(EditorNode::get_singleton()->get_object_icon(res.operator->(), "Object"));
|
assign->set_icon(EditorNode::get_singleton()->get_object_icon(res.operator->(), "Object"));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue