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.
This commit is contained in:
Antonio Vazquez 2019-06-27 16:05:42 +02:00
parent 658aa00718
commit ccfb98511b
Notes: blender-bot 2023-02-14 07:39:44 +01:00
Referenced by issue #66203, Regression: Newly added Irradiance Volumes do not display sample points
Referenced by issue #66173, Gpencil Control points disappear when scale GP circle tool
1 changed files with 2 additions and 1 deletions

View File

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