[Bf-blender-cvs] [8712f952e04] temp-gpencil-automask: Fix merge issues

Antonio Vazquez noreply at git.blender.org
Thu Oct 27 16:50:56 CEST 2022


Commit: 8712f952e04f4a897fbb3a22fea993cad339c3c4
Author: Antonio Vazquez
Date:   Thu Oct 27 16:50:48 2022 +0200
Branches: temp-gpencil-automask
https://developer.blender.org/rB8712f952e04f4a897fbb3a22fea993cad339c3c4

Fix merge issues

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

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

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

diff --git a/source/blender/editors/gpencil/gpencil_sculpt_paint.c b/source/blender/editors/gpencil/gpencil_sculpt_paint.c
index b94435b0c0d..c42d48d8364 100644
--- a/source/blender/editors/gpencil/gpencil_sculpt_paint.c
+++ b/source/blender/editors/gpencil/gpencil_sculpt_paint.c
@@ -2206,20 +2206,6 @@ static void gpencil_sculpt_brush_apply_event(bContext *C, wmOperator *op, const
     if (gso->brush == NULL) {
       gso->brush = gso->brush_prev;
     }
-    Brush *brush = gso->brush;
-    if (brush->gpencil_settings->sculpt_mode_flag &
-        (GP_SCULPT_FLAGMODE_AUTOMASK_STROKE | GP_SCULPT_FLAGMODE_AUTOMASK_LAYER |
-         GP_SCULPT_FLAGMODE_AUTOMASK_MATERIAL)) {
-      if (gso->automasking_strokes == NULL) {
-        gso->automasking_strokes = BLI_ghash_ptr_new(__func__);
-      }
-    }
-    else {
-      if (gso->automasking_strokes != NULL) {
-        BLI_ghash_free(gso->automasking_strokes, NULL, NULL);
-      }
-      gso->automasking_strokes = NULL;
-    }
   }
   else {
     if (gso->brush_prev != NULL) {



More information about the Bf-blender-cvs mailing list