Blender Git Loki
Git Commits -> Revision 910b7de
Revision 910b7de by Julian Eisel (master) February 22, 2017, 16:25 (GMT) |
UI: Support drag & drop reordering of collections This adds initial support for reordering collections from the Outliner using drag & drop. Although drag & drop support is limited to collections for now, this lays most foundations for general drag & drop reordering support in the Outliner. There are some design questions to be answered though: * Would reordering of other data types (like objects) be a purely visual change or would it affect the order in which they are stored? (Would that make a difference for the user?) * Should/can we allow mixing of different data types? (e.g. mixing render layers with objects) * How could we realize this technically? Notes: * "Sort Alphabetically" has to be disabled to use this ("View" menu). * Reordering only works with collections on the same hierarchy level. * Added some visual feedback that should work quite well, it's by far not a final design though: {F493806} * Modified collection orders are stored in .blends. * Reordering can be undone. * Did minor cleanups here and there. |
Commit Details:
Full Hash: 910b7dec8dca25473d98c23f7c4fd8e44fafd47d
Parent Commit: e003499
Lines Changed: +657, -161
10 Modified Paths:
/source/blender/blenkernel/BKE_collection.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_layer.h (+3, -1) (Diff)
/source/blender/blenkernel/intern/collection.c (+31, -2) (Diff)
/source/blender/blenkernel/intern/layer.c (+66, -1) (Diff)
/source/blender/editors/include/UI_interface_icons.h (+1, -0) (Diff)
/source/blender/editors/interface/interface_icons.c (+5, -0) (Diff)
/source/blender/editors/space_outliner/outliner_draw.c (+301, -144) (Diff)
/source/blender/editors/space_outliner/outliner_intern.h (+17, -1) (Diff)
/source/blender/editors/space_outliner/outliner_ops.c (+217, -1) (Diff)
/source/blender/editors/space_outliner/outliner_tree.c (+15, -10) (Diff)
/source/blender/blenkernel/BKE_layer.h (+3, -1) (Diff)
/source/blender/blenkernel/intern/collection.c (+31, -2) (Diff)
/source/blender/blenkernel/intern/layer.c (+66, -1) (Diff)
/source/blender/editors/include/UI_interface_icons.h (+1, -0) (Diff)
/source/blender/editors/interface/interface_icons.c (+5, -0) (Diff)
/source/blender/editors/space_outliner/outliner_draw.c (+301, -144) (Diff)
/source/blender/editors/space_outliner/outliner_intern.h (+17, -1) (Diff)
/source/blender/editors/space_outliner/outliner_ops.c (+217, -1) (Diff)
/source/blender/editors/space_outliner/outliner_tree.c (+15, -10) (Diff)