diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-09-20 17:18:07 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-09-20 17:19:09 +0300 |
commit | c460b7e0c69e233f4b8dbdb8b12cb96a63e1ca94 (patch) | |
tree | 0c22e2d661ad93839956cde84a8819c2a1ae3e75 /source | |
parent | 2f1e8f4b97e72a078d8a6725a29cb371f6d12880 (diff) |
Fix T70112: Spot cone prevents selection
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/draw/modes/object_mode.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/source/blender/draw/modes/object_mode.c b/source/blender/draw/modes/object_mode.c index dc7523e4091..97e6c2dd6f1 100644 --- a/source/blender/draw/modes/object_mode.c +++ b/source/blender/draw/modes/object_mode.c @@ -1880,9 +1880,10 @@ static void DRW_shgroup_light(OBJECT_ShadingGroupList *sgl, Object *ob, ViewLaye } if (la->mode & LA_SHOW_CONE) { - - DRW_buffer_add_entry(sgl->light_spot_volume_rect, cone_inside, &one, shapemat); - DRW_buffer_add_entry(sgl->light_spot_volume_rect_outside, cone_outside, &one, shapemat); + if (!DRW_state_is_select()) { + DRW_buffer_add_entry(sgl->light_spot_volume_rect, cone_inside, &one, shapemat); + DRW_buffer_add_entry(sgl->light_spot_volume_rect_outside, cone_outside, &one, shapemat); + } } } else { @@ -1896,8 +1897,10 @@ static void DRW_shgroup_light(OBJECT_ShadingGroupList *sgl, Object *ob, ViewLaye } if (la->mode & LA_SHOW_CONE) { - DRW_buffer_add_entry(sgl->light_spot_volume, cone_inside, &one, shapemat); - DRW_buffer_add_entry(sgl->light_spot_volume_outside, cone_outside, &one, shapemat); + if (!DRW_state_is_select()) { + DRW_buffer_add_entry(sgl->light_spot_volume, cone_inside, &one, shapemat); + DRW_buffer_add_entry(sgl->light_spot_volume_outside, cone_outside, &one, shapemat); + } } } |