Merge pull request #64555 from nongvantinh/inspector_resource_preview_incorrect_size
Fixed inspector resource preview shows up with incorrect size
This commit is contained in:
commit
9efa5a8fc9
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ void EditorResourcePicker::_update_resource_preview(const String &p_path, const
|
|||
preview_rect->set_stretch_mode(TextureRect::STRETCH_KEEP_ASPECT_CENTERED);
|
||||
int thumbnail_size = EditorSettings::get_singleton()->get("filesystem/file_dialog/thumbnail_size");
|
||||
thumbnail_size *= EDSCALE;
|
||||
assign_button->set_custom_minimum_size(Size2(MIN(1, assign_button_min_size.x), MIN(thumbnail_size, assign_button_min_size.y)));
|
||||
assign_button->set_custom_minimum_size(Size2(MAX(1, assign_button_min_size.x), MAX(thumbnail_size, assign_button_min_size.y)));
|
||||
}
|
||||
|
||||
preview_rect->set_texture(p_preview);
|
||||
|
|
Loading…
Reference in a new issue