Blender Git Loki

Git Commits -> Revision 1b18e15

Revision 1b18e15 by Dalai Felinto (master)
November 7, 2017, 16:08 (GMT)
Sanitize use of BLI_iterator

We now initialize iter.valid as true as part of the main iterator (and manually
when using via Python). And we don't even bother setting iter->current to NULL
if it's invalid. Let's stick to using iter->valid only.

Commit Details:

Full Hash: 1b18e158025a488e1ba2446ad93c2eb563c11611
Parent Commit: fc78980
Lines Changed: +9, -15

5 Modified Paths:

/source/blender/blenkernel/intern/collection.c (+4, -5) (Diff)
/source/blender/blenkernel/intern/layer.c (+0, -4) (Diff)
/source/blender/blenlib/BLI_iterator.h (+1, -2) (Diff)
/source/blender/depsgraph/intern/depsgraph_query.cc (+2, -4) (Diff)
/source/blender/makesrna/intern/rna_depsgraph.c (+2, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021