Commit: 28015e164d05dd810a7d3d953327dd0f1d96cc4c
Author: Falk David
Date:   Sat Feb 20 20:00:47 2021 +0100
Branches: temp-gpencil-bezier-v2
https://developer.blender.org/rB28015e164d05dd810a7d3d953327dd0f1d96cc4c

GPencil: Make curve - fix selection

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

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

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

diff --git a/source/blender/editors/gpencil/gpencil_edit_curve.c 
b/source/blender/editors/gpencil/gpencil_edit_curve.c
index 54f6d5f52c5..cfa6c115a0d 100644
--- a/source/blender/editors/gpencil/gpencil_edit_curve.c
+++ b/source/blender/editors/gpencil/gpencil_edit_curve.c
@@ -156,10 +156,10 @@ static int gpencil_stroke_make_curve_exec(bContext *C, 
wmOperator *op)
         /* Select all curve points. */
         for (uint32_t i = 0; i < gpc->tot_curve_points; i++) {
           bGPDcurve_point *pt = &gpc->curve_points[i];
-          pt->flag &= ~GP_CURVE_POINT_SELECT;
+          pt->flag |= GP_CURVE_POINT_SELECT;
           BEZT_SEL_ALL(&pt->bezt);
         }
-        gpc->flag &= ~GP_CURVE_SELECT;
+        gpc->flag |= GP_CURVE_SELECT;
 
         /* Deselect stroke points. */
         for (uint32_t i = 0; i < gps->totpoints; i++) {
@@ -167,7 +167,6 @@ static int gpencil_stroke_make_curve_exec(bContext *C, 
wmOperator *op)
           pt->flag &= ~GP_SPOINT_SELECT;
         }
         gps->flag &= ~GP_STROKE_SELECT;
-
         changed = true;
       }
     }

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

Reply via email to