[Bf-blender-cvs] [da6a96f3346] greasepencil-object: Cleanup

Falk David noreply at git.blender.org
Mon Feb 7 18:35:13 CET 2022


Commit: da6a96f3346188c43914fe1954fd6027c7198e7c
Author: Falk David
Date:   Thu Feb 3 10:41:31 2022 +0100
Branches: greasepencil-object
https://developer.blender.org/rBda6a96f3346188c43914fe1954fd6027c7198e7c

Cleanup

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

M	source/blender/editors/gpencil/gpencil_paint.c
M	source/blender/editors/gpencil/gpencil_undo.c

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

diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c
index cab44bbef5b..082deab823b 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -280,7 +280,7 @@ typedef struct tGPsdata {
 static void gpencil_update_cache(bGPdata *gpd)
 {
   if (gpd) {
-    DEG_id_tag_update(&gpd->id, ID_RECALC_GEOMETRY);
+    DEG_id_tag_update(&gpd->id, ID_RECALC_TRANSFORM | ID_RECALC_GEOMETRY);
     gpd->flag |= GP_DATA_CACHE_IS_DIRTY;
   }
 }
@@ -2240,6 +2240,7 @@ static void gpencil_paint_initstroke(tGPsdata *p,
       if (!IS_AUTOKEY_ON(scene)) {
         BKE_report(p->reports, RPT_INFO, "No available frame for creating stroke");
       }
+
       return;
     }
     p->gpf->flag |= GP_FRAME_PAINT;
diff --git a/source/blender/editors/gpencil/gpencil_undo.c b/source/blender/editors/gpencil/gpencil_undo.c
index 052d85e8883..bf9d9d4ee80 100644
--- a/source/blender/editors/gpencil/gpencil_undo.c
+++ b/source/blender/editors/gpencil/gpencil_undo.c
@@ -1,4 +1,3 @@
-
 /*
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -22,7 +21,6 @@
  * \ingroup edgpencil
  */
 
-#include <stdio.h>
 #include <stdlib.h>
 #include <string.h>



More information about the Bf-blender-cvs mailing list