diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-08-07 06:22:07 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-08-07 06:22:07 +0300 |
commit | ac2cdb21e69b4dcfc4c273cfcf2b94f7afb789f5 (patch) | |
tree | 125803058a2e8a374e0e62f533b4b9e97035aa88 /source/blender/editors | |
parent | f70798474357bb64d75aeeb14e2ba7e2d12ac881 (diff) |
Fix T56252: Selectable Bases includes hidden objects
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/screen/screen_context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/screen/screen_context.c b/source/blender/editors/screen/screen_context.c index ecfc9f2cca0..5a520540301 100644 --- a/source/blender/editors/screen/screen_context.c +++ b/source/blender/editors/screen/screen_context.c @@ -167,7 +167,7 @@ int ed_screen_context(const bContext *C, const char *member, bContextDataResult } else if (CTX_data_equals(member, "selectable_bases")) { for (Base *base = view_layer->object_bases.first; base; base = base->next) { - if ((base->flag & BASE_SELECTABLE) != 0) { + if ((base->flag & BASE_VISIBLE) && (base->flag & BASE_SELECTABLE) != 0) { CTX_data_list_add(result, &scene->id, &RNA_ObjectBase, base); } } |