diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2019-03-18 13:32:06 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2019-03-18 13:36:50 +0300 |
commit | d0e28721b04a0235d4f6bfbe42f43672ff923444 (patch) | |
tree | af52e9e2f14a7e29eb40731b88584d00e309f821 /source/blender/nodes | |
parent | 66932a2c814037f897af56693efb68b6993406fb (diff) |
Cleanup: Main id looping: add FOREACH_MAIN_LISTBASE macro.
We don't want to use flow control like `break` statement into the basic
`FOREACH_MAIN_ID` macro, as this is a nested loop.
When refined behavior is needed (like breaking whole iteration, or just
skipping to next ID type), FOREACH_MAIN_LISTBASE and
FOREACH_MAIN_LISTBASE_ID macros should be used instead.
Based on D4382 by @campbellbarton
(Other potential solution, using flow control macros: D4384).
Diffstat (limited to 'source/blender/nodes')
0 files changed, 0 insertions, 0 deletions