[Bf-blender-cvs] [bf30180654c] greasepencil-object: Display edit point in sculpt mode

Antonio Vazquez noreply at git.blender.org
Fri Jun 23 16:26:47 CEST 2017


Commit: bf30180654c17ccbbc0b6d2c271e63068b693d53
Author: Antonio Vazquez
Date:   Fri Jun 23 16:26:25 2017 +0200
Branches: greasepencil-object
https://developer.blender.org/rBbf30180654c17ccbbc0b6d2c271e63068b693d53

Display edit point in sculpt mode

To use the sculpt mask option is necessary to see the selected points

Maybe need to include the select/unselect operators in sculpt too

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

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

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

diff --git a/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c b/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c
index a136c5d434a..909b31e31c5 100644
--- a/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c
+++ b/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c
@@ -413,7 +413,7 @@ static void gpencil_add_stroke_shgroup(GPENCIL_StorageList *stl, GpencilBatchCac
 /* add edit points shading group to pass */
 static void gpencil_add_editpoints_shgroup(GPENCIL_StorageList *stl, GpencilBatchCache *cache, ToolSettings *ts,
 	bGPdata *gpd, bGPDlayer *gpl, bGPDframe *gpf, bGPDstroke *gps) {
-	if ((gpl->flag & GP_LAYER_LOCKED) == 0 && (gpd->flag & GP_DATA_STROKE_EDITMODE))
+	if ((gpl->flag & GP_LAYER_LOCKED) == 0 && (gpd->flag & (GP_DATA_STROKE_EDITMODE | GP_DATA_STROKE_SCULPTMODE)))
 	{
 		if (gps->flag & GP_STROKE_SELECT) {
 			if ((gpl->flag & GP_LAYER_UNLOCK_COLOR) || ((gps->palcolor->flag & PC_COLOR_LOCKED) == 0)) {




More information about the Bf-blender-cvs mailing list