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:
@@ -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")
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user