diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-06-16 03:18:45 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-06-16 03:32:41 +0300 |
commit | fa823dc828a3135d040f95a6977cdc516cabbe8e (patch) | |
tree | 4979691f8440ff20f8c1e1bb518a036e5dfd035e /source/blender/editors/space_file/file_ops.c | |
parent | b1a92f2b3acf529cf86202a2b799fed64d89c3dd (diff) |
Cleanup: style
Diffstat (limited to 'source/blender/editors/space_file/file_ops.c')
-rw-r--r-- | source/blender/editors/space_file/file_ops.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/source/blender/editors/space_file/file_ops.c b/source/blender/editors/space_file/file_ops.c index db93000ef7c..8c9233e3ce5 100644 --- a/source/blender/editors/space_file/file_ops.c +++ b/source/blender/editors/space_file/file_ops.c @@ -483,17 +483,17 @@ static bool file_walk_select_selection_set( filelist_is_selected(files, active_old, FILE_SEL_SELECTED) && filelist_is_selected(files, active_new, FILE_SEL_SELECTED)) { - /* conditions for deselecting: initial file is selected, new file is - * selected and either other_side isn't selected/found or we use fill */ - deselect = (fill || other_site == -1 || !filelist_is_selected(files, other_site, FILE_SEL_SELECTED)); - - /* don't change active here since we either want to deselect active or we want to - * walk through a block of selected files without selecting/deselecting anything */ - params->active_file = active_new; - /* but we want to change active if we use fill (needed to get correct selection bounds) */ - if (deselect && fill) { - active = active_new; - } + /* conditions for deselecting: initial file is selected, new file is + * selected and either other_side isn't selected/found or we use fill */ + deselect = (fill || other_site == -1 || !filelist_is_selected(files, other_site, FILE_SEL_SELECTED)); + + /* don't change active here since we either want to deselect active or we want to + * walk through a block of selected files without selecting/deselecting anything */ + params->active_file = active_new; + /* but we want to change active if we use fill (needed to get correct selection bounds) */ + if (deselect && fill) { + active = active_new; + } } else { /* regular selection change */ |