diff options
Diffstat (limited to 'source/blender/blenkernel/intern/collection.c')
-rw-r--r-- | source/blender/blenkernel/intern/collection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/collection.c b/source/blender/blenkernel/intern/collection.c index eac0fc7a2fd..b423efdda24 100644 --- a/source/blender/blenkernel/intern/collection.c +++ b/source/blender/blenkernel/intern/collection.c @@ -429,7 +429,7 @@ void BKE_scene_objects_Iterator_begin(Iterator *iter, void *data_in) BKE_scene_collections_Iterator_begin(&data->scene_collection_iter, scene); SceneCollection *sc = data->scene_collection_iter.current; - iter->current = sc->objects.first; + iter->current = sc->objects.first ? ((LinkData *)sc->objects.first)->data : NULL; iter->valid = true; if (iter->current == NULL) { |