You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 19:41:11 +00:00
Collapse Resource Preview Properly
This commit is contained in:
@@ -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"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user