Commit: 2be3e78a7b711a89a0cdc6035688e39469fe07dd
Author: Falk David
Date: Thu Aug 20 10:11:15 2020 +0200
Branches: soc-2020-greasepencil-curve
https://developer.blender.org/rB2be3e78a7b711a89a0cdc6035688e39469fe07dd
GPencil: Skip unused code with macro
===================================================================
M source/blender/editors/gpencil/gpencil_select.c
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_select.c
b/source/blender/editors/gpencil/gpencil_select.c
index 6690695bad5..36ca15c4ca4 100644
--- a/source/blender/editors/gpencil/gpencil_select.c
+++ b/source/blender/editors/gpencil/gpencil_select.c
@@ -1819,13 +1819,15 @@ static bool gpencil_generic_stroke_select(bContext *C,
whole = ED_gpencil_stroke_point_is_inside(gps_active, &gsc, mval,
gpstroke_iter.diff_mat);
}
- // if (is_curve_edit && (hit || whole) && gps->editcurve == NULL) {
- // BKE_gpencil_stroke_editcurve_update(gps, gpd->curve_edit_threshold,
gpd->curve_corner_angle);
- // BKE_gpencil_curve_sync_selection(gps);
- // gps->flag |= GP_STROKE_NEEDS_CURVE_UPDATE;
- // BKE_gpencil_stroke_geometry_update(gpd, gps);
- // changed = true;
- // }
+#if 0
+ if (is_curve_edit && (hit || whole) && gps->editcurve == NULL) {
+ BKE_gpencil_stroke_editcurve_update(gps, gpd->curve_edit_threshold,
gpd->curve_corner_angle);
+ BKE_gpencil_curve_sync_selection(gps);
+ gps->flag |= GP_STROKE_NEEDS_CURVE_UPDATE;
+ BKE_gpencil_stroke_geometry_update(gpd, gps);
+ changed = true;
+ }
+#endif
/* if stroke mode expand selection. */
if ((strokemode) || (whole)) {
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs