diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-07-03 04:20:52 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-07-03 04:58:13 +0300 |
commit | a272a2a6cdc30c30d3957787f30211cfc5b9d35c (patch) | |
tree | 7cb31b54f5f0b17828f0ebfa5acb058245e24d5a /source/blender/editors/space_outliner | |
parent | 0fdb79fe5848a66335805cf353eb38afe16cf25e (diff) |
Cleanup: spelling
Diffstat (limited to 'source/blender/editors/space_outliner')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_draw.c | 14 | ||||
-rw-r--r-- | source/blender/editors/space_outliner/outliner_intern.h | 6 |
2 files changed, 10 insertions, 10 deletions
diff --git a/source/blender/editors/space_outliner/outliner_draw.c b/source/blender/editors/space_outliner/outliner_draw.c index 6ea1d74112d..6f5f1294167 100644 --- a/source/blender/editors/space_outliner/outliner_draw.c +++ b/source/blender/editors/space_outliner/outliner_draw.c @@ -3171,9 +3171,9 @@ static void outliner_draw_tree_element(bContext *C, *starty -= UI_UNIT_Y; LISTBASE_FOREACH (TreeElement *, ten, &te->subtree) { - /* check if element needs to be drawn grayed out, but also gray out - * childs of a grayed out parent (pass on draw_grayed_out to childs) */ - bool draw_childs_grayed_out = draw_grayed_out || (ten->flag & TE_DRAGGING); + /* Check if element needs to be drawn grayed out, but also gray out + * children of a grayed out parent (pass on draw_grayed_out to children). */ + bool draw_children_grayed_out = draw_grayed_out || (ten->flag & TE_DRAGGING); outliner_draw_tree_element(C, block, fstyle, @@ -3181,7 +3181,7 @@ static void outliner_draw_tree_element(bContext *C, region, soops, ten, - draw_childs_grayed_out, + draw_children_grayed_out, startx + UI_UNIT_X, starty, restrict_column_width, @@ -3228,10 +3228,10 @@ static void outliner_draw_hierarchy_lines_recursive(uint pos, /* For vertical lines between objects. */ y1 = y2 = y1_dashed = y2_dashed = *starty; for (te = lb->first; te; te = te->next) { - bool draw_childs_grayed_out = draw_grayed_out || (te->flag & TE_DRAGGING); + bool draw_children_grayed_out = draw_grayed_out || (te->flag & TE_DRAGGING); TreeStoreElem *tselem = TREESTORE(te); - if (draw_childs_grayed_out) { + if (draw_children_grayed_out) { immUniformColor3ubvAlpha(col, grayed_alpha); } else { @@ -3268,7 +3268,7 @@ static void outliner_draw_hierarchy_lines_recursive(uint pos, if (TSELEM_OPEN(tselem, soops)) { outliner_draw_hierarchy_lines_recursive( - pos, soops, &te->subtree, startx + UI_UNIT_X, col, draw_childs_grayed_out, starty); + pos, soops, &te->subtree, startx + UI_UNIT_X, col, draw_children_grayed_out, starty); } } diff --git a/source/blender/editors/space_outliner/outliner_intern.h b/source/blender/editors/space_outliner/outliner_intern.h index b590eb75407..b6fff3a1022 100644 --- a/source/blender/editors/space_outliner/outliner_intern.h +++ b/source/blender/editors/space_outliner/outliner_intern.h @@ -50,11 +50,11 @@ typedef enum TreeElementInsertType { } TreeElementInsertType; typedef enum TreeTraversalAction { - /* Continue traversal regularly, don't skip children. */ + /** Continue traversal regularly, don't skip children. */ TRAVERSE_CONTINUE = 0, - /* Stop traversal */ + /** Stop traversal. */ TRAVERSE_BREAK, - /* Continue traversal, but skip childs of traversed element */ + /** Continue traversal, but skip children of traversed element. */ TRAVERSE_SKIP_CHILDS, } TreeTraversalAction; |