[Bf-blender-cvs] [54e753f] asset-experiments: Fix size of files not showing in default Filebrowser mode.
Bastien Montagne
noreply at git.blender.org
Mon May 4 17:01:27 CEST 2015
Commit: 54e753f85e10bc9da0d7a0efb11c302b509f6034
Author: Bastien Montagne
Date: Mon May 4 16:23:54 2015 +0200
Branches: asset-experiments
https://developer.blender.org/rB54e753f85e10bc9da0d7a0efb11c302b509f6034
Fix size of files not showing in default Filebrowser mode.
===================================================================
M source/blender/editors/space_file/file_draw.c
===================================================================
diff --git a/source/blender/editors/space_file/file_draw.c b/source/blender/editors/space_file/file_draw.c
index c6a1185..0e0f478 100644
--- a/source/blender/editors/space_file/file_draw.c
+++ b/source/blender/editors/space_file/file_draw.c
@@ -599,6 +599,9 @@ void file_draw_list(const bContext *C, ARegion *ar)
if (params->display == FILE_SHORTDISPLAY) {
sx += (int)layout->column_widths[COLUMN_NAME] + column_space;
if (!(file->typeflag & FILE_TYPE_DIR)) {
+ if (file->entry->size_str[0] == '\0') {
+ BLI_filelist_entry_size_to_string(NULL, file->entry->size, file->entry->size_str);
+ }
file_draw_string(sx, sy, file->entry->size_str, layout->column_widths[COLUMN_SIZE], layout->tile_h, align);
sx += (int)layout->column_widths[COLUMN_SIZE] + column_space;
}
More information about the Bf-blender-cvs
mailing list