[Bf-blender-cvs] [823d26ea3a4] soc-2020-greasepencil-curve: GPencil: Use BezTriple selection marcos
Falk David
noreply at git.blender.org
Wed Jun 10 19:42:27 CEST 2020
Commit: 823d26ea3a4cbfa15b4a88ad57205e065e4b97cc
Author: Falk David
Date: Wed Jun 10 17:30:59 2020 +0200
Branches: soc-2020-greasepencil-curve
https://developer.blender.org/rB823d26ea3a4cbfa15b4a88ad57205e065e4b97cc
GPencil: Use BezTriple selection marcos
===================================================================
M source/blender/editors/gpencil/gpencil_utils.c
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_utils.c b/source/blender/editors/gpencil/gpencil_utils.c
index 77a03767850..8e434fd6af3 100644
--- a/source/blender/editors/gpencil/gpencil_utils.c
+++ b/source/blender/editors/gpencil/gpencil_utils.c
@@ -2630,9 +2630,7 @@ void ED_gpencil_select_curve_toggle_all(bContext *C, int action)
bGPDcurve *gpc = gps->editcurve;
for (int i = 0; i < gpc->tot_curve_points; i++) {
BezTriple *bezt = &gpc->curve_points[i];
- bezt->f1 &= ~SELECT;
- bezt->f2 &= ~SELECT;
- bezt->f3 &= ~SELECT;
+ BEZT_DESEL_ALL(bezt);
}
gps->flag &= ~GP_STROKE_SELECT;
}
@@ -2653,9 +2651,7 @@ void ED_gpencil_select_curve_toggle_all(bContext *C, int action)
BezTriple *bezt = &gpc->curve_points[i];
switch (action) {
case SEL_SELECT:
- bezt->f1 |= SELECT;
- bezt->f2 |= SELECT;
- bezt->f3 |= SELECT;
+ BEZT_SEL_ALL(bezt);
break;
case SEL_INVERT:
bezt->f1 ^= SELECT;
@@ -2666,7 +2662,7 @@ void ED_gpencil_select_curve_toggle_all(bContext *C, int action)
break;
}
- if (bezt->f1 & SELECT) {
+ if (BEZT_ISSEL_ANY(bezt)) {
selected = true;
}
}
More information about the Bf-blender-cvs
mailing list