diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-08-30 06:19:50 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-08-30 06:42:28 +0300 |
commit | 2778937fb6b965d4c428f87551cccb2eafd56bf1 (patch) | |
tree | fea666d43b4bf44edcc8f771464b22e5ac6a4c51 /source/blender/blenkernel/BKE_layer.h | |
parent | e06050945e25c26167c4f193d214936e70a231a8 (diff) |
BKE_layer: add BKE_view_layer_array_selected_objects_params
Useful for similar situations as BKE_view_layer_array_from_bases_in_mode_params
without depending on the active objects mode.
Diffstat (limited to 'source/blender/blenkernel/BKE_layer.h')
-rw-r--r-- | source/blender/blenkernel/BKE_layer.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_layer.h b/source/blender/blenkernel/BKE_layer.h index 1976509543d..6c9b41b835e 100644 --- a/source/blender/blenkernel/BKE_layer.h +++ b/source/blender/blenkernel/BKE_layer.h @@ -352,6 +352,19 @@ void BKE_view_layer_visible_bases_iterator_end(BLI_Iterator *iter); /* layer_utils.c */ +struct ObjectsInViewLayerParams { + uint no_dup_data : 1; + + bool (*filter_fn)(struct Object *ob, void *user_data); + void *filter_userdata; +}; + +struct Object **BKE_view_layer_array_selected_objects_params( + struct ViewLayer *view_layer, + const struct View3D *v3d, + uint *r_len, + const struct ObjectsInViewLayerParams *params); + struct ObjectsInModeParams { int object_mode; uint no_dup_data : 1; |