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:
authorSergey Sharybin <sergey.vfx@gmail.com>2019-10-31 18:07:36 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2019-11-04 12:54:59 +0300
commite236f5b5749f256034e7605a66f611f1fad74c41 (patch)
tree9db334e7b8760bef134801417336c6e0785e4269 /source/blender/editors/mask/mask_draw.c
parent3d55d80c59d97ce12d1e5f344e7f1aaf1c9c2a4f (diff)
Masking: Cleanup, limit variable scope
Diffstat (limited to 'source/blender/editors/mask/mask_draw.c')
-rw-r--r--source/blender/editors/mask/mask_draw.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/editors/mask/mask_draw.c b/source/blender/editors/mask/mask_draw.c
index bcca7f8b35f..71aa860d703 100644
--- a/source/blender/editors/mask/mask_draw.c
+++ b/source/blender/editors/mask/mask_draw.c
@@ -608,14 +608,13 @@ static void draw_mask_layers(const bContext *C,
for (mask_layer = mask->masklayers.first, i = 0; mask_layer != NULL;
mask_layer = mask_layer->next, i++) {
- MaskSpline *spline;
const bool is_active = (i == mask->masklay_act);
if (mask_layer->restrictflag & MASK_RESTRICT_VIEW) {
continue;
}
- for (spline = mask_layer->splines.first; spline; spline = spline->next) {
+ for (MaskSpline *spline = mask_layer->splines.first; spline; spline = spline->next) {
/* draw curve itself first... */
draw_spline_curve(C, mask_layer, spline, draw_flag, draw_type, is_active, width, height);