[Bf-blender-cvs] [5fd3d0a797b] greasepencil-refactor: GPencil: Do not use locked layers in Sculpt

Antonio Vazquez noreply at git.blender.org
Wed Jan 22 16:07:52 CET 2020


Commit: 5fd3d0a797bfbc4fea9444d4ecd0c5cf609d7db6
Author: Antonio Vazquez
Date:   Wed Jan 22 16:07:29 2020 +0100
Branches: greasepencil-refactor
https://developer.blender.org/rB5fd3d0a797bfbc4fea9444d4ecd0c5cf609d7db6

GPencil: Do not use locked layers in Sculpt

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

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 22eae16dfde..489c63645c5 100644
--- a/source/blender/editors/gpencil/gpencil_sculpt_paint.c
+++ b/source/blender/editors/gpencil/gpencil_sculpt_paint.c
@@ -1780,7 +1780,7 @@ static bool gpsculpt_brush_apply_standard(bContext *C, tGP_BrushEditData *gso)
   /* Find visible strokes, and perform operations on those if hit */
   for (bGPDlayer *gpl = gpd->layers.first; gpl; gpl = gpl->next) {
     /* If no active frame, don't do anything... */
-    if (gpl->actframe == NULL) {
+    if ((!BKE_gpencil_layer_is_editable(gpl)) || (gpl->actframe == NULL)) {
       continue;
     }



More information about the Bf-blender-cvs mailing list