Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-05-03 02:43:56 +0300
committerCampbell Barton <campbell@blender.org>2022-05-03 02:43:56 +0300
commitecc2ec724e35a60e0e85036161d4b3a40dd60524 (patch)
treecb19da0946ce28d01e292f57b76a3dc89d3b35c9 /source/blender/editors
parentfd7384a751b6cbf6f64ecee1427f4ddf4a107f51 (diff)
Cleanup: quiet shadow warning
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/gpencil/gpencil_sculpt_paint.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/editors/gpencil/gpencil_sculpt_paint.c b/source/blender/editors/gpencil/gpencil_sculpt_paint.c
index 7a511c33673..ae40c76916b 100644
--- a/source/blender/editors/gpencil/gpencil_sculpt_paint.c
+++ b/source/blender/editors/gpencil/gpencil_sculpt_paint.c
@@ -1601,8 +1601,6 @@ static bool gpencil_sculpt_brush_do_frame(bContext *C,
BKE_gpencil_layer_transform_matrix_get(gso->depsgraph, gso->object, gpl, bound_mat);
LISTBASE_FOREACH (bGPDstroke *, gps, &gpf->strokes) {
- bGPDstroke *gps_active = (gps->runtime.gps_orig) ? gps->runtime.gps_orig : gps;
-
/* skip strokes that are invalid for current view */
if (ED_gpencil_stroke_can_use(C, gps) == false) {
continue;
@@ -1612,8 +1610,11 @@ static bool gpencil_sculpt_brush_do_frame(bContext *C,
continue;
}
- if ((is_automasking) && (!BLI_ghash_haskey(gso->automasking_strokes, gps_active))) {
- continue;
+ {
+ bGPDstroke *gps_active = (gps->runtime.gps_orig) ? gps->runtime.gps_orig : gps;
+ if ((is_automasking) && (!BLI_ghash_haskey(gso->automasking_strokes, gps_active))) {
+ continue;
+ }
}
/* Check if the stroke collide with brush. */