[Bf-blender-cvs] [38aa49eb71e] temp-gpencil-bezier-stroke-type: GPencil: Allow bezier stroke sculpting
Falk David
noreply at git.blender.org
Sun Apr 11 09:32:30 CEST 2021
Commit: 38aa49eb71ed93cb7e5f2477b92e3f73952b0ff2
Author: Falk David
Date: Sun Apr 11 09:32:14 2021 +0200
Branches: temp-gpencil-bezier-stroke-type
https://developer.blender.org/rB38aa49eb71ed93cb7e5f2477b92e3f73952b0ff2
GPencil: Allow bezier stroke sculpting
A check for the original stroke points was preventing sculpting of
bezier strokes.
===================================================================
M source/blender/editors/gpencil/gpencil_sculpt_paint.c
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_sculpt_paint.c b/source/blender/editors/gpencil/gpencil_sculpt_paint.c
index f2f7dc8b4a6..6ddda80e85e 100644
--- a/source/blender/editors/gpencil/gpencil_sculpt_paint.c
+++ b/source/blender/editors/gpencil/gpencil_sculpt_paint.c
@@ -1515,7 +1515,7 @@ static bool gpencil_sculpt_brush_do_stroke(tGP_BrushEditData *gso,
/* To each point individually... */
pt = &gps->points[i];
- if ((pt->runtime.pt_orig == NULL) && (tool != GPSCULPT_TOOL_GRAB)) {
+ if (!is_curve && (pt->runtime.pt_orig == NULL) && (tool != GPSCULPT_TOOL_GRAB)) {
continue;
}
pt_active = (pt->runtime.pt_orig) ? pt->runtime.pt_orig : pt;
More information about the Bf-blender-cvs
mailing list