[Bf-blender-cvs] [2a16a4ee43] blender2.8: Fix uninitialized var with FOREACH_SCENE_OBJECT

Campbell Barton noreply at git.blender.org
Wed Feb 8 17:34:07 CET 2017


Commit: 2a16a4ee433c155a81d41c69c2fd21668cbb3564
Author: Campbell Barton
Date:   Thu Feb 9 02:25:27 2017 +1100
Branches: blender2.8
https://developer.blender.org/rB2a16a4ee433c155a81d41c69c2fd21668cbb3564

Fix uninitialized var with FOREACH_SCENE_OBJECT

===================================================================

M	source/blender/blenkernel/intern/collection.c

===================================================================

diff --git a/source/blender/blenkernel/intern/collection.c b/source/blender/blenkernel/intern/collection.c
index 2798edfc47..efc98281a5 100644
--- a/source/blender/blenkernel/intern/collection.c
+++ b/source/blender/blenkernel/intern/collection.c
@@ -389,6 +389,7 @@ void BKE_scene_objects_Iterator_begin(Iterator *iter, void *data_in)
 	if (iter->current == NULL) {
 		BKE_scene_objects_Iterator_next(iter);
 	}
+	iter->valid = true;
 }
 
 /**




More information about the Bf-blender-cvs mailing list