diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-08-06 05:52:48 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-08-06 05:53:31 +0300 |
commit | f7b1fec463eaa9dc3a05809b04cebf3a26c86aed (patch) | |
tree | 2dedefb2abac7087b6a52ba2bbb89a8f933aecb3 /source/blender/editors | |
parent | 14d9aeacce0ff684b32508122942bec4dbf1fe28 (diff) |
Cleanup: unused vars
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_add_stroke.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/source/blender/editors/gpencil/gpencil_add_stroke.c b/source/blender/editors/gpencil/gpencil_add_stroke.c index 5b7c81a3808..ebe07fe417f 100644 --- a/source/blender/editors/gpencil/gpencil_add_stroke.c +++ b/source/blender/editors/gpencil/gpencil_add_stroke.c @@ -223,7 +223,7 @@ void ED_gpencil_create_stroke(bContext *C, float mat[4][4]) bGPDstroke *gps; /* create colors */ - int color_Black = gp_stroke_material(bmain, ob, &gp_stroke_material_black); + int color_black = gp_stroke_material(bmain, ob, &gp_stroke_material_black); gp_stroke_material(bmain, ob, &gp_stroke_material_white); gp_stroke_material(bmain, ob, &gp_stroke_material_red); gp_stroke_material(bmain, ob, &gp_stroke_material_green); @@ -231,15 +231,16 @@ void ED_gpencil_create_stroke(bContext *C, float mat[4][4]) gp_stroke_material(bmain, ob, &gp_stroke_material_grey); /* layers */ - bGPDlayer *Colors = BKE_gpencil_layer_addnew(gpd, "Colors", false); - bGPDlayer *Lines = BKE_gpencil_layer_addnew(gpd, "Lines", false); + bGPDlayer *colors = BKE_gpencil_layer_addnew(gpd, "Colors", false); + bGPDlayer *lines = BKE_gpencil_layer_addnew(gpd, "Lines", false); /* frames */ - bGPDframe *frameColor = BKE_gpencil_frame_addnew(Colors, cfra_eval); - bGPDframe *frameLines = BKE_gpencil_frame_addnew(Lines, cfra_eval); + bGPDframe *frame_color = BKE_gpencil_frame_addnew(colors, cfra_eval); + bGPDframe *frame_lines = BKE_gpencil_frame_addnew(lines, cfra_eval); + UNUSED_VARS(frame_color); /* generate stroke */ - gps = BKE_gpencil_add_stroke(frameLines, color_Black, 175, 3); + gps = BKE_gpencil_add_stroke(frame_lines, color_black, 175, 3); BKE_gpencil_stroke_add_points(gps, data0, 175, mat); /* update depsgraph */ |