[Bf-blender-cvs] [0e360a4a2db] soc-2020-outliner: Cleanup: Use listbase foreach macro
Nathan Craddock
noreply at git.blender.org
Sun Aug 16 01:54:01 CEST 2020
Commit: 0e360a4a2db3ab7abfa0d1039c9bcf28090e451c
Author: Nathan Craddock
Date: Sat Aug 15 17:53:43 2020 -0600
Branches: soc-2020-outliner
https://developer.blender.org/rB0e360a4a2db3ab7abfa0d1039c9bcf28090e451c
Cleanup: Use listbase foreach macro
===================================================================
M source/blender/editors/space_outliner/outliner_tools.c
===================================================================
diff --git a/source/blender/editors/space_outliner/outliner_tools.c b/source/blender/editors/space_outliner/outliner_tools.c
index d913cd38174..f359bd92688 100644
--- a/source/blender/editors/space_outliner/outliner_tools.c
+++ b/source/blender/editors/space_outliner/outliner_tools.c
@@ -193,12 +193,10 @@ static void set_operation_types(SpaceOutliner *space_outliner,
int *idlevel,
int *datalevel)
{
- TreeElement *te;
- TreeStoreElem *tselem;
-
- for (te = lb->first; te; te = te->next) {
+ LISTBASE_FOREACH (TreeElement *, te, lb) {
get_element_operation_type(te, scenelevel, objectlevel, idlevel, datalevel);
+ TreeStoreElem *tselem = TREESTORE(te);
if (TSELEM_OPEN(tselem, space_outliner)) {
set_operation_types(
space_outliner, &te->subtree, scenelevel, objectlevel, idlevel, datalevel);
More information about the Bf-blender-cvs
mailing list