[Bf-blender-cvs] [199bf3e7d77] temp-gpencil-bezier-stroke-type: GPencil: Cleanup: Small cleanup in curve draw
Falk David
noreply at git.blender.org
Sun Mar 21 14:09:11 CET 2021
Commit: 199bf3e7d77e62c6b0383d67b2241a6417da56ad
Author: Falk David
Date: Sun Mar 21 13:12:58 2021 +0100
Branches: temp-gpencil-bezier-stroke-type
https://developer.blender.org/rB199bf3e7d77e62c6b0383d67b2241a6417da56ad
GPencil: Cleanup: Small cleanup in curve draw
===================================================================
M source/blender/editors/gpencil/gpencil_curve_draw.c
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_curve_draw.c b/source/blender/editors/gpencil/gpencil_curve_draw.c
index fe2238c34c8..4bc4537732e 100644
--- a/source/blender/editors/gpencil/gpencil_curve_draw.c
+++ b/source/blender/editors/gpencil/gpencil_curve_draw.c
@@ -174,7 +174,9 @@ static void gpencil_pop_curve_point(bContext *C, tGPDcurve_draw *tcd)
bGPDcurve *gpc = tcd->gpc;
const int old_num_points = gpc->tot_curve_points;
const int new_num_points = old_num_points - 1;
- // printf("old: %d, new: %d\n", old_num_points, new_num_points);
+ if (G.debug & G_DEBUG) {
+ printf("old: %d, new: %d\n", old_num_points, new_num_points);
+ }
/* Create new stroke and curve */
bGPDstroke *new_stroke = BKE_gpencil_stroke_duplicate(tcd->gps, false, false);
@@ -624,7 +626,7 @@ void GPENCIL_OT_draw_curve(wmOperatorType *ot)
/* identifiers */
ot->name = "Grease Pencil Draw Curve";
ot->idname = "GPENCIL_OT_draw_curve";
- ot->description = "Draw a bezier curve in the active grease pencil object";
+ ot->description = "Draw a bézier stroke in the active grease pencil object";
/* api callbacks */
ot->invoke = gpencil_curve_draw_invoke;
More information about the Bf-blender-cvs
mailing list