Commit: 0eabdabfaeeda024972c6db0128218d1c5e4723d
Author: Antonioya
Date:   Fri Dec 7 15:46:40 2018 +0100
Branches: greasepencil-object
https://developer.blender.org/rB0eabdabfaeeda024972c6db0128218d1c5e4723d

GP: Clear selected flag for new primitives

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

M       source/blender/editors/gpencil/gpencil_primitive.c

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

diff --git a/source/blender/editors/gpencil/gpencil_primitive.c 
b/source/blender/editors/gpencil/gpencil_primitive.c
index df5d5533342..7b1381dde8e 100644
--- a/source/blender/editors/gpencil/gpencil_primitive.c
+++ b/source/blender/editors/gpencil/gpencil_primitive.c
@@ -248,6 +248,7 @@ static void gp_primitive_set_initdata(bContext *C, 
tGPDprimitive *tgpi)
 
        /* enable recalculation flag by default */
        gps->flag |= GP_STROKE_RECALC_CACHES;
+       gps->flag &= ~GP_STROKE_SELECT;
        /* the polygon must be closed, so enabled cyclic */
        if (tgpi->type != GP_STROKE_LINE && tgpi->type != GP_STROKE_ARC) {
                gps->flag |= GP_STROKE_CYCLIC;
@@ -545,6 +546,7 @@ static void gp_primitive_update_strokes(bContext *C, 
tGPDprimitive *tgpi)
                pt->pressure = pressure;
                pt->strength = tgpi->brush->gpencil_settings->draw_strength;
                pt->time = 0.0f;
+               pt->flag = 0;
 
                if (gps->dvert != NULL) {
                        MDeformVert *dvert = &gps->dvert[i];

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to