diff options
author | Nathan Craddock <nzcraddock@gmail.com> | 2020-04-25 05:22:46 +0300 |
---|---|---|
committer | Nathan Craddock <nzcraddock@gmail.com> | 2020-04-25 05:22:46 +0300 |
commit | 4ab85a338055b1d53a5a4c4e0cfc04c6300efcc3 (patch) | |
tree | dbbf1c6dc5f02ddaa5336369ed5a350992c6646c /source/blender/editors/space_outliner/outliner_edit.c | |
parent | 5d14463e1aee44a99d37f6d94804c9e8407ee4fd (diff) |
Cleanup: Select sync from outliner
Move the condition to check if selection syncing is enabled to inside
the syncing function rather than before each time it is called.
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_edit.c')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_edit.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/editors/space_outliner/outliner_edit.c b/source/blender/editors/space_outliner/outliner_edit.c index 862418be151..469a0065e3a 100644 --- a/source/blender/editors/space_outliner/outliner_edit.c +++ b/source/blender/editors/space_outliner/outliner_edit.c @@ -1176,9 +1176,7 @@ static int outliner_select_all_exec(bContext *C, wmOperator *op) break; } - if (soops->flag & SO_SYNC_SELECT) { - ED_outliner_select_sync_from_outliner(C, soops); - } + ED_outliner_select_sync_from_outliner(C, soops); DEG_id_tag_update(&scene->id, ID_RECALC_SELECT); WM_event_add_notifier(C, NC_SCENE | ND_OB_SELECT, scene); |