[Bf-blender-cvs] [f11cce2fd5b] temp-gpencil-bezier-stroke-type: GPencil: Only update weights for bezier strokes
Falk David
noreply at git.blender.org
Thu Apr 22 16:10:38 CEST 2021
Commit: f11cce2fd5b714e90b822e8dac628f8838e0961f
Author: Falk David
Date: Thu Apr 22 16:10:28 2021 +0200
Branches: temp-gpencil-bezier-stroke-type
https://developer.blender.org/rBf11cce2fd5b714e90b822e8dac628f8838e0961f
GPencil: Only update weights for bezier strokes
Set the update flag to only update the weights when regenerating the
polyline.
===================================================================
M source/blender/editors/gpencil/gpencil_weight_paint.c
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_weight_paint.c b/source/blender/editors/gpencil/gpencil_weight_paint.c
index a1df9f88655..339e9695efe 100644
--- a/source/blender/editors/gpencil/gpencil_weight_paint.c
+++ b/source/blender/editors/gpencil/gpencil_weight_paint.c
@@ -649,7 +649,7 @@ static bool gpencil_weightpaint_brush_do_frame(bContext *C,
}
if (changed && GPENCIL_STROKE_TYPE_BEZIER(selected->gps)) {
- BKE_gpencil_stroke_geometry_update(gso->gpd, selected->gps, GP_GEO_UPDATE_DEFAULT);
+ BKE_gpencil_stroke_geometry_update(gso->gpd, selected->gps, GP_GEO_UPDATE_POLYLINE_WEIGHT);
}
}
/* Clear the selected array, but keep the memory allocation.*/
More information about the Bf-blender-cvs
mailing list