diff options
author | Brecht Van Lommel <brecht@blender.org> | 2020-03-09 23:45:54 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2020-03-09 23:58:55 +0300 |
commit | 0133d66ada55b69e4fe83279d375aeb67795af23 (patch) | |
tree | c9f28023e359a1443bd7ee75aa826de2c1aadcca | |
parent | 4652f23fa340f0ca96c217fe7116493b94793b72 (diff) |
Fix error in grease pencil vertex paint levels operator
-rw-r--r-- | source/blender/editors/gpencil/gpencil_vertex_ops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/gpencil/gpencil_vertex_ops.c b/source/blender/editors/gpencil/gpencil_vertex_ops.c index 6a3eebf1baf..3039a83009e 100644 --- a/source/blender/editors/gpencil/gpencil_vertex_ops.c +++ b/source/blender/editors/gpencil/gpencil_vertex_ops.c @@ -360,7 +360,6 @@ static int gp_vertexpaint_levels_exec(bContext *C, wmOperator *op) bGPdata *gpd = (bGPdata *)ob->data; bool changed = false; - int i; bGPDspoint *pt; const int mode = RNA_enum_get(op->ptr, "mode"); @@ -384,9 +383,10 @@ static int gp_vertexpaint_levels_exec(bContext *C, wmOperator *op) /* Stroke points. */ if (mode != GP_PAINT_VERTEX_FILL) { + int i; for (i = 0, pt = gps->points; i < gps->totpoints; i++, pt++) { if ((pt->flag & GP_SPOINT_SELECT) && (pt->vert_color[3] > 0.0f)) { - for (int i2 = 0; i < 3; i2++) { + for (int i2 = 0; i2 < 3; i2++) { pt->vert_color[i2] = gain * (pt->vert_color[i2] + offset); } } |