diff options
author | Antonioya <blendergit@gmail.com> | 2019-06-27 17:05:42 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2019-06-27 17:05:58 +0300 |
commit | ccfb98511b5032394d12880d6ebd91d39707f51a (patch) | |
tree | d6310a6919af1548eb7a5674adaea8405a0bc8c0 /source | |
parent | 658aa007189c68bc4edad223fd8303c37d34dda9 (diff) |
GPencil: Fix Control points of primitives clampoed by Stencil
The control points were clamped to the stroke thickness due the last stencil change.
Now, the shading group is not clamped.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/draw/engines/gpencil/gpencil_draw_utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c index 7df28bb9730..b41085868d1 100644 --- a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c +++ b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c @@ -1596,7 +1596,8 @@ void DRW_gpencil_populate_buffer_strokes(GPENCIL_e_data *e_data, DRWShadingGroup *shgrp = DRW_shgroup_create(e_data->gpencil_edit_point_sh, psl->drawing_pass); const float *viewport_size = DRW_viewport_size_get(); DRW_shgroup_uniform_vec2(shgrp, "Viewport", viewport_size, 1); - + /* Disable stencil for this type */ + DRW_shgroup_state_disable(shgrp, DRW_STATE_WRITE_STENCIL | DRW_STATE_STENCIL_NEQUAL); stl->g_data->batch_buffer_ctrlpoint = DRW_gpencil_get_buffer_ctrlpoint_geom(gpd); DRW_shgroup_call(shgrp, stl->g_data->batch_buffer_ctrlpoint, NULL); |