diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2019-10-17 12:16:12 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2019-10-17 12:16:12 +0300 |
commit | 78cd3f7db93a5f517d7411aeb2b05309b574bb5c (patch) | |
tree | 94e03f42f4fda3ec942eec7868137520980ce1ed /source/blender | |
parent | 707d40e627de71caca81732fc9021409f0c54ff2 (diff) | |
parent | 2afbd14c596746be22951e7a8cb9e1bc769a7128 (diff) |
Merge branch 'blender-v2.81-release'
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/draw/engines/gpencil/gpencil_draw_utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c index 576655a9f87..af315597e68 100644 --- a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c +++ b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c @@ -1281,12 +1281,14 @@ static void gpencil_draw_strokes(GpencilBatchCache *cache, if (!stl->g_data->shgrps_edit_line) { stl->g_data->shgrps_edit_line = DRW_shgroup_create(e_data->gpencil_line_sh, psl->edit_pass); + DRW_shgroup_uniform_mat4(stl->g_data->shgrps_edit_line, "gpModelMatrix", ob->obmat); } if (!stl->g_data->shgrps_edit_point) { stl->g_data->shgrps_edit_point = DRW_shgroup_create(e_data->gpencil_edit_point_sh, psl->edit_pass); const float *viewport_size = DRW_viewport_size_get(); DRW_shgroup_uniform_vec2(stl->g_data->shgrps_edit_point, "Viewport", viewport_size, 1); + DRW_shgroup_uniform_mat4(stl->g_data->shgrps_edit_point, "gpModelMatrix", ob->obmat); } gpencil_add_editpoints_vertexdata(cache, ob, gpd, gpl, gpf, gps); |