diff options
author | julianeisel <julian_eisel@web.de> | 2015-01-19 03:01:23 +0300 |
---|---|---|
committer | julianeisel <julian_eisel@web.de> | 2015-01-19 03:01:23 +0300 |
commit | ffe56536f1050717b133883cba29d63fff8d9e00 (patch) | |
tree | 5f9ba6037c6381506e53c299d1012d50f7e7b5a8 /source/blender/editors/space_outliner/outliner_tree.c | |
parent | 90b569745960ef78e2f20bb8b826dba8b52adee3 (diff) |
Outliner: Make alphabetical sorting optional
A new option to the Outliner's View menu is added to enable/disable sorting of items.
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_tree.c')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_tree.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/space_outliner/outliner_tree.c b/source/blender/editors/space_outliner/outliner_tree.c index 4aa36da594b..f1a7a982c26 100644 --- a/source/blender/editors/space_outliner/outliner_tree.c +++ b/source/blender/editors/space_outliner/outliner_tree.c @@ -1311,7 +1311,10 @@ static void outliner_sort(SpaceOops *soops, ListBase *lb) TreeElement *te; TreeStoreElem *tselem; int totelem = 0; - + + if (soops->flag & SO_SKIP_SORTING) + return; + te = lb->last; if (te == NULL) return; tselem = TREESTORE(te); |