Blender Git Commit Log

Git Commits -> Revision 5f888e6

Revision 5f888e6 by Dalai Felinto (master)
April 24, 2019, 11:42 (GMT)
Outliner: Show parenting hierarchy in view layer view

If the "Object Children" filter is enabled, we nest the object children inside
the object. If the child itself is not in the collection, it is grayed out,
connected by a dash line, and its restriction flags and contents are not shown.

If "Object Children" filter is disabled, it works as before.

Note: This is not super fast, but at least we traverse the tree only once to get the
children of an object. That said, there is a lot of loops going on here.

Task T63526.

Development notes:
I could use the GPU_SHADER_2D_LINE_DASHED_UNIFORM_COLOR shader, but
that would mean I would need to iterate over the tree twice (once for
each shader) - or do some bigger refactor.

Also I could not get that shader to work. This shader expects float
vertices while the current one is using integers, so converting the code
would make the dash line drawing to diverge from the regular lines even
further.

Differential Revision: https://developer.blender.org/D4696

Commit Details:

Full Hash: 5f888e65c3e765d5c176d3f54cf7d20d216441fc
Parent Commit: cc5a75d
Lines Changed: +176, -11

3 Modified Paths:

/source/blender/editors/space_outliner/outliner_draw.c (+56, -11) (Diff)
/source/blender/editors/space_outliner/outliner_intern.h (+1, -0) (Diff)
/source/blender/editors/space_outliner/outliner_tree.c (+119, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021