Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-02-17 03:32:09 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-02-17 03:36:41 +0300
commit8cb4011220bffae553b7719556d5ee2f4e642b23 (patch)
tree9dbeb8c2dfb0516e1967abaf9f6a3ec021f01de4 /source/blender/editors/space_file
parent9f008d17fe043d8f41842df18257753a8c02b191 (diff)
Revert "Fix file size not drawn using Link/Append"
This reverts commit 4ca4f04c75c456d3614855ebaa70bab9a92eb36a. Was running an fs-stat on redraw, on every file! (every mouse motion!). Could become very slow on network-fs also caused crash (T43631)
Diffstat (limited to 'source/blender/editors/space_file')
-rw-r--r--source/blender/editors/space_file/file_draw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_file/file_draw.c b/source/blender/editors/space_file/file_draw.c
index a00799c360d..98c7ddeff77 100644
--- a/source/blender/editors/space_file/file_draw.c
+++ b/source/blender/editors/space_file/file_draw.c
@@ -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;
}