[Bf-blender-cvs] [7ce54d379a4] greasepencil-object: GPencil: Tag after sculpt to recalc data

Antonio Vazquez noreply at git.blender.org
Sat Aug 24 18:04:49 CEST 2019


Commit: 7ce54d379a4ce330988c49dda053bd7ed65aa388
Author: Antonio Vazquez
Date:   Sat Aug 24 17:45:05 2019 +0200
Branches: greasepencil-object
https://developer.blender.org/rB7ce54d379a4ce330988c49dda053bd7ed65aa388

GPencil: Tag after sculpt to recalc data

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

M	source/blender/editors/gpencil/gpencil_brush.c

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

diff --git a/source/blender/editors/gpencil/gpencil_brush.c b/source/blender/editors/gpencil/gpencil_brush.c
index ed43f88208c..95ac1fd53b7 100644
--- a/source/blender/editors/gpencil/gpencil_brush.c
+++ b/source/blender/editors/gpencil/gpencil_brush.c
@@ -1491,7 +1491,7 @@ static void gpsculpt_brush_init_stroke(tGP_BrushEditData *gso)
 /* Apply ----------------------------------------------- */
 
 /* Get angle of the segment relative to the original segment before any transformation
- * For strokes with one point only this is impossible to calculate because there isn' a
+ * For strokes with one point only this is impossible to calculate because there isn't a
  * valid reference point.
  */
 static float gpsculpt_rotation_eval_get(GP_SpaceConversion *gsc,
@@ -1917,7 +1917,7 @@ static void gpsculpt_brush_apply(bContext *C, wmOperator *op, PointerRNA *itempt
 
   /* Updates */
   if (changed) {
-    DEG_id_tag_update(&gso->gpd->id, ID_RECALC_GEOMETRY);
+    DEG_id_tag_update(&gso->gpd->id, ID_RECALC_GEOMETRY | ID_RECALC_COPY_ON_WRITE);
     WM_event_add_notifier(C, NC_GPENCIL | ND_DATA | NA_EDITED, NULL);
   }



More information about the Bf-blender-cvs mailing list