[Bf-blender-cvs] [ba46eeff752] soc-2020-outliner: Outliner: Cleanup sorting
Nathan Craddock
noreply at git.blender.org
Wed Jul 22 22:52:56 CEST 2020
Commit: ba46eeff752f31a031d797508e521aa80136c43d
Author: Nathan Craddock
Date: Wed Jul 22 14:48:05 2020 -0600
Branches: soc-2020-outliner
https://developer.blender.org/rBba46eeff752f31a031d797508e521aa80136c43d
Outliner: Cleanup sorting
===================================================================
M source/blender/editors/space_outliner/outliner_tree.c
===================================================================
diff --git a/source/blender/editors/space_outliner/outliner_tree.c b/source/blender/editors/space_outliner/outliner_tree.c
index 16dd5254ed2..90ad8b95273 100644
--- a/source/blender/editors/space_outliner/outliner_tree.c
+++ b/source/blender/editors/space_outliner/outliner_tree.c
@@ -1909,6 +1909,7 @@ static void outliner_sort(ListBase *lb)
}
}
+/* TODO (Nathan): Should children still be sorted? */
static void outliner_collections_children_sort(ListBase *lb)
{
TreeElement *te;
@@ -2038,18 +2039,6 @@ static void outliner_tree_sort(SpaceOutliner *soops, ListBase *tree)
}
}
- // /* just sort alphabetically */
- // if (tree_sort->idcode == 1) {
- // qsort(tree_sort, num_elems, sizeof(tTreeSort), treesort_alpha);
- // }
- // else {
- // /* keep beginning of list */
-
- // if (skip < num_elems) {
- // qsort(tree_sort + skip, num_elems - skip, sizeof(tTreeSort), treesort_alpha_ob);
- // }
- // }
-
/* Copy sorted list back into tree */
BLI_listbase_clear(tree);
tree_sort_p = tree_sort;
More information about the Bf-blender-cvs
mailing list