Revert "Fix file size not drawn using Link/Append"
This reverts commit 4ca4f04c75
.
Was running an fs-stat on redraw, on every file! (every mouse motion!).
Could become very slow on network-fs
also caused crash (T43631)
This commit is contained in:
parent
9f008d17fe
commit
8cb4011220
Notes:
blender-bot
2023-02-14 09:29:44 +01:00
Referenced by issue #43631, Blender Crash when trying to append
|
@ -592,7 +592,7 @@ void file_draw_list(const bContext *C, ARegion *ar)
|
|||
|
||||
if (params->display == FILE_SHORTDISPLAY) {
|
||||
sx += (int)layout->column_widths[COLUMN_NAME] + column_space;
|
||||
if ((BLI_is_dir(file->path) == false) && file->size[0]) {
|
||||
if (!(file->type & S_IFDIR)) {
|
||||
file_draw_string(sx, sy, file->size, layout->column_widths[COLUMN_SIZE], layout->tile_h, align);
|
||||
sx += (int)layout->column_widths[COLUMN_SIZE] + column_space;
|
||||
}
|
||||
|
@ -621,7 +621,7 @@ void file_draw_list(const bContext *C, ARegion *ar)
|
|||
file_draw_string(sx, sy, file->time, layout->column_widths[COLUMN_TIME], layout->tile_h, align);
|
||||
sx += (int)layout->column_widths[COLUMN_TIME] + column_space;
|
||||
|
||||
if ((BLI_is_dir(file->path) == false) && file->size[0]) {
|
||||
if (!(file->type & S_IFDIR)) {
|
||||
file_draw_string(sx, sy, file->size, layout->column_widths[COLUMN_SIZE], layout->tile_h, align);
|
||||
sx += (int)layout->column_widths[COLUMN_SIZE] + column_space;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue