Commit: 551852f4ca1b336695eb78ddd8b0938d7fed1ac2 Author: Dalai Felinto Date: Mon Jan 9 16:17:04 2017 +0100 Branches: render-layers https://developer.blender.org/rB551852f4ca1b336695eb78ddd8b0938d7fed1ac2
Adding FOREACH_OBJECT iterator =================================================================== M source/blender/blenkernel/BKE_layer.h =================================================================== diff --git a/source/blender/blenkernel/BKE_layer.h b/source/blender/blenkernel/BKE_layer.h index ecf883c477..6ff4a47c1d 100644 --- a/source/blender/blenkernel/BKE_layer.h +++ b/source/blender/blenkernel/BKE_layer.h @@ -97,6 +97,16 @@ void BKE_selected_objects_Iterator_end(Iterator *iter); #define FOREACH_SELECTED_OBJECT_END \ ITER_END +#define FOREACH_OBJECT(sl, _ob) \ +{ \ + ObjectBase *ob_base; \ + for (ob_base = sl->object_bases.first; ob_base; ob_base = ob_base->next) {\ + _ob = ob_base->object; + +#define FOREACH_OBJECT_END \ +} + + #define FOREACH_OBJECT_FLAG(scene, sl, flag, _ob) \ { \ IteratorBeginCb func_begin; \ _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org https://lists.blender.org/mailman/listinfo/bf-blender-cvs