Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Craddock <nzcraddock@gmail.com>2020-08-15 01:24:31 +0300
committerNathan Craddock <nzcraddock@gmail.com>2020-08-15 01:24:31 +0300
commita0cd2dbcce01c40b9ae7508418309e0ccfabeecf (patch)
treeb316e95906fde0d4118b3f8c13e677460a65899e /source/blender/editors/space_outliner/outliner_draw.c
parentae09b1fdf2f4308e2f326506b26436f4cad4af49 (diff)
Outliner: Add new row children filter
Add a new filter to prevent the drawing of row icons.
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_draw.c')
-rw-r--r--source/blender/editors/space_outliner/outliner_draw.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/space_outliner/outliner_draw.c b/source/blender/editors/space_outliner/outliner_draw.c
index 0894c20c81d..34679473a98 100644
--- a/source/blender/editors/space_outliner/outliner_draw.c
+++ b/source/blender/editors/space_outliner/outliner_draw.c
@@ -3294,7 +3294,8 @@ static void outliner_draw_tree_element(bContext *C,
offsx += (int)(UI_UNIT_X + UI_fontstyle_string_width(fstyle, te->name));
/* closed item, we draw the icons, not when it's a scene, or master-server list though */
- if (!TSELEM_OPEN(tselem, space_outliner)) {
+ if (!TSELEM_OPEN(tselem, space_outliner) &&
+ !(space_outliner->filter & SO_FILTER_NO_ROW_CHILDREN)) {
if (te->subtree.first) {
if (tselem->type == 0 && te->idcode == ID_SCE) {
/* pass */