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:
authorjulianeisel <julian_eisel@web.de>2015-01-19 03:01:23 +0300
committerjulianeisel <julian_eisel@web.de>2015-01-19 03:01:23 +0300
commitffe56536f1050717b133883cba29d63fff8d9e00 (patch)
tree5f9ba6037c6381506e53c299d1012d50f7e7b5a8 /source/blender/editors/space_outliner
parent90b569745960ef78e2f20bb8b826dba8b52adee3 (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')
-rw-r--r--source/blender/editors/space_outliner/outliner_tree.c5
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);