Outliner: Don't use alphabetical sorting for collections

Order of collections matters, so sorting the outliner entries to be
alphabetical is misleading.
This commit is contained in:
Julian Eisel
2017-02-26 22:32:43 +01:00
parent 16b2005bfb
commit aff8ce438a
2 changed files with 4 additions and 4 deletions

View File

@@ -97,7 +97,8 @@ class OUTLINER_MT_view(Menu):
space = context.space_data
if space.display_mode not in {'DATABLOCKS', 'USER_PREFERENCES', 'KEYMAPS'}:
layout.prop(space, "use_sort_alpha")
if space.display_mode != 'COLLECTIONS':
layout.prop(space, "use_sort_alpha")
layout.prop(space, "show_restrict_columns")
layout.separator()
layout.operator("outliner.show_active")

View File

@@ -61,9 +61,8 @@ static int outliner_item_drag_drop_poll(bContext *C)
{
SpaceOops *soops = CTX_wm_space_outliner(C);
return ED_operator_outliner_active(C) &&
(soops->flag & SO_SKIP_SORT_ALPHA) &&
/* Only collection display mode supported for now. Others need more design work */
ELEM(soops->outlinevis, SO_COLLECTIONS);
/* Only collection display mode supported for now. Others need more design work */
ELEM(soops->outlinevis, SO_COLLECTIONS);
}
static TreeElement *outliner_item_drag_element_find(SpaceOops *soops, ARegion *ar, const wmEvent *event)