Blender Git Commit Log
Git Commits -> Revision 37913cf
Revision 37913cf by Dalai Felinto (master) January 19, 2018, 14:13 (GMT) |
Outliner Filtering System + Cleanup User notes: The outliner so far was a great system to handle the object oriented workflow we had in Blender prior to 2.8. However with the introduction of collections the bloated ammount of data we were exposed at a given time was eventually getting on the way of fully utilizing the outliner to manage collections and their objects. We hope that with this filtering system the user can put together the outliner with whichever options he or she seem fit for a given task. Features: * Collection filter: In case users are only focused on objects. * Object filter: Allow users to focus on collections only. * (Object) content filter: Modifiers, mesh, contrainst, materials, ... * (Object) children filter: Hide object children [1]. * Object State (visible, active, selected). * Compact header: hide search options under a search toggle. * Preserve scrolling position before/after filtering [2]. [1] - Note we still need to be able to tell if a children of an object is in a collection, or if the parent object is the only one in the collection. This in fact was one of the first motivations for this patch. But it is to be addressed separately now that we can at least hide children away. [2] - We look at the top-most collection in the outliner, and try to find it again after the filtering and make sure it is in the same position as before. This works nice now. But to work REALLY, REALLY nice we need to also store the previous filter options to be sure the element we try to keep on top was valid for both old and new filters. I would rather do this later though since this smell a lot like feature creeping ;) Remove no longer needed display options: * Current Scene (replaced by View Layer/Collections) * Visible (replaced by filter) * Selected (same) * Active (same) * Same Type (same-ish) How about All Scenes? I have a patch that will come next to replace the current behaviour and focus only on compositing. So basically stop showing the objects and show only view layers, their passes and collections, besides freestyle. Also, while at this I'm also reorganizing the menu to keep View Layer and Collections on top. Developer notes: * Unlike the per-object filtering, for collections we need to filter at tree creation time, to prevent duplication of objects in the outliner. Acknowledgements: Thanks Pablo Vazquez for helping testing, thinking some design questions together and pushing this to its final polished state as you see here. Thanks Sergey Sharybin and Julian Eisel for code review. Julian couldn't do a final review pass after I addressed his concerns. So blame is on me for any issue I may be introducing here. Sergey was the author of the "preserve scrolling position" idea. I'm happy with how it is working, thank you. Reviewers: sergey, Severin, venomgfx Subscribers: lichtwerk, duarteframos Differential Revision: https://developer.blender.org/D2992 |
Commit Details:
Full Hash: 37913cf5326a732cb94c28f96c1deb8f3965c846
Parent Commit: 76f3740
Lines Changed: +639, -104
10 Modified Paths:
/release/scripts/startup/bl_ui/space_outliner.py (+51, -5) (Diff)
/source/blender/blenloader/intern/versioning_260.c (+7, -3) (Diff)
/source/blender/blenloader/intern/versioning_280.c (+33, -0) (Diff)
/source/blender/editors/space_outliner/outliner_draw.c (+5, -3) (Diff)
/source/blender/editors/space_outliner/outliner_edit.c (+2, -2) (Diff)
/source/blender/editors/space_outliner/outliner_intern.h (+9, -2) (Diff)
/source/blender/editors/space_outliner/outliner_tree.c (+374, -73) (Diff)
/source/blender/editors/space_outliner/space_outliner.c (+1, -1) (Diff)
/source/blender/makesdna/DNA_space_types.h (+52, -5) (Diff)
/source/blender/makesrna/intern/rna_space.c (+105, -10) (Diff)
/source/blender/blenloader/intern/versioning_260.c (+7, -3) (Diff)
/source/blender/blenloader/intern/versioning_280.c (+33, -0) (Diff)
/source/blender/editors/space_outliner/outliner_draw.c (+5, -3) (Diff)
/source/blender/editors/space_outliner/outliner_edit.c (+2, -2) (Diff)
/source/blender/editors/space_outliner/outliner_intern.h (+9, -2) (Diff)
/source/blender/editors/space_outliner/outliner_tree.c (+374, -73) (Diff)
/source/blender/editors/space_outliner/space_outliner.c (+1, -1) (Diff)
/source/blender/makesdna/DNA_space_types.h (+52, -5) (Diff)
/source/blender/makesrna/intern/rna_space.c (+105, -10) (Diff)