[Bf-blender-cvs] [528f5e6951d] temp-gpencil-bezier-v2: GPencil: Disable partial update

Falk David noreply at git.blender.org
Sat Mar 6 21:54:39 CET 2021


Commit: 528f5e6951d76079d558c6e3f4cde703e9a09405
Author: Falk David
Date:   Sat Mar 6 21:53:13 2021 +0100
Branches: temp-gpencil-bezier-v2
https://developer.blender.org/rB528f5e6951d76079d558c6e3f4cde703e9a09405

GPencil: Disable partial update

This will have to be changed at some point, but for now,
never use partial update.

===================================================================

M	source/blender/blenkernel/intern/gpencil_geom.c

===================================================================

diff --git a/source/blender/blenkernel/intern/gpencil_geom.c b/source/blender/blenkernel/intern/gpencil_geom.c
index dd230766c99..a8f9bb9535a 100644
--- a/source/blender/blenkernel/intern/gpencil_geom.c
+++ b/source/blender/blenkernel/intern/gpencil_geom.c
@@ -1297,8 +1297,9 @@ void BKE_gpencil_stroke_geometry_update(bGPdata *gpd, bGPDstroke *gps)
      * NOTE: Normally the stroke points of a curve should not be updated directly. Only if it is
      * unavoidable. Sculpting a curve also makes use of this. */
     if (gps->editcurve->flag & GP_CURVE_NEEDS_STROKE_UPDATE) {
+      /* TODO: Make do-partial-update variable */
       BKE_gpencil_stroke_editcurve_update(
-          gps, gpd->curve_edit_threshold, gpd->curve_edit_corner_angle, true);
+          gps, gpd->curve_edit_threshold, gpd->curve_edit_corner_angle, false);
       gps->editcurve->flag &= ~GP_CURVE_NEEDS_STROKE_UPDATE;
       gps->flag |= GP_STROKE_NEEDS_CURVE_UPDATE;
     }



More information about the Bf-blender-cvs mailing list