[Bf-blender-cvs] [bc8384d8a38] greasepencil-object: GP: Fix missing control points after merge 2.8

Antonioya noreply at git.blender.org
Wed Dec 12 22:42:18 CET 2018


Commit: bc8384d8a38089b654fa3f0ce47b80f646c357ef
Author: Antonioya
Date:   Wed Dec 12 22:42:02 2018 +0100
Branches: greasepencil-object
https://developer.blender.org/rBbc8384d8a38089b654fa3f0ce47b80f646c357ef

GP: Fix missing control points after merge 2.8

===================================================================

M	source/blender/draw/engines/gpencil/gpencil_draw_utils.c

===================================================================

diff --git a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
index 4db9a040241..9e7a9c49c23 100644
--- a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
+++ b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
@@ -1264,6 +1264,8 @@ void DRW_gpencil_populate_buffer_strokes(GPENCIL_e_data *e_data, void *vedata, T
 
 		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);
 
 		/* clean previous version of the batch */
 		if (stl->storage->buffer_ctrlpoint) {



More information about the Bf-blender-cvs mailing list