Fix T70112: Spot cone prevents selection

This commit is contained in:
2019-09-21 00:18:07 +10:00
parent 2f1e8f4b97
commit c460b7e0c6

View File

@@ -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);
}
}
}