[Bf-blender-cvs] [74fdcd66731] soc-2020-greasepencil-curve: GPencil: Fix pressure and strength not updateing

Falk David noreply at git.blender.org
Fri Jun 19 20:48:12 CEST 2020


Commit: 74fdcd667319239eabb20141374ec598a8b8c8b1
Author: Falk David
Date:   Fri Jun 19 20:46:23 2020 +0200
Branches: soc-2020-greasepencil-curve
https://developer.blender.org/rB74fdcd667319239eabb20141374ec598a8b8c8b1

GPencil: Fix pressure and strength not updateing

Handles could be scaled, but the data was not written back to the
stroke. This fixes this issue by forceing a recalc after the data has
been written to the curve.

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

M	source/blender/editors/transform/transform_mode_gpopacity.c
M	source/blender/editors/transform/transform_mode_gpshrinkfatten.c

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

diff --git a/source/blender/editors/transform/transform_mode_gpopacity.c b/source/blender/editors/transform/transform_mode_gpopacity.c
index 4712fb7ba01..fdc0bdd3900 100644
--- a/source/blender/editors/transform/transform_mode_gpopacity.c
+++ b/source/blender/editors/transform/transform_mode_gpopacity.c
@@ -86,6 +86,9 @@ static void applyGPOpacity(TransInfo *t, const int UNUSED(mval[2]))
     }
   }
 
+  /* GXX: This is only really needed in curve edit mode */
+  recalcData(t);
+
   ED_area_status_text(t->area, str);
 }
 
diff --git a/source/blender/editors/transform/transform_mode_gpshrinkfatten.c b/source/blender/editors/transform/transform_mode_gpshrinkfatten.c
index ab9a0aa79ed..636461bf26d 100644
--- a/source/blender/editors/transform/transform_mode_gpshrinkfatten.c
+++ b/source/blender/editors/transform/transform_mode_gpshrinkfatten.c
@@ -88,6 +88,9 @@ static void applyGPShrinkFatten(TransInfo *t, const int UNUSED(mval[2]))
     }
   }
 
+  /* GXX: This is only really needed in curve edit mode */
+  recalcData(t);
+
   ED_area_status_text(t->area, str);
 }



More information about the Bf-blender-cvs mailing list