diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2017-01-03 20:02:58 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2017-01-03 20:21:15 +0300 |
commit | 3bdd555159a79e1c533068c6e75d7f7f23b8cff9 (patch) | |
tree | 5515b5f37000a413938420cdb7f25202bb921dce /source/blender/blenkernel/intern/collection.c | |
parent | 36c34b96b3529466669b1f8a2b9fced899fede14 (diff) |
Massive fixup on BLI_iterator and the iterators using it
Diffstat (limited to 'source/blender/blenkernel/intern/collection.c')
-rw-r--r-- | source/blender/blenkernel/intern/collection.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/collection.c b/source/blender/blenkernel/intern/collection.c index d1a23da9658..853e8df0543 100644 --- a/source/blender/blenkernel/intern/collection.c +++ b/source/blender/blenkernel/intern/collection.c @@ -345,6 +345,10 @@ void BKE_scene_objects_Iterator_begin(Iterator *iter, void *data_in) SceneCollection *sc = data->scene_collection_iter.current; iter->current = sc->objects.first; + + if (iter->current == NULL) { + BKE_scene_objects_Iterator_next(iter); + } } /** |