From 71e2c366f7d19d8fe4f160a60597e63692fdc7ca Mon Sep 17 00:00:00 2001 From: Antonio Vazquez Date: Mon, 9 Aug 2021 15:28:12 +0200 Subject: Cleanup: Fix compiler warning --- source/blender/editors/gpencil/gpencil_paint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c index aaea1c0ddaf..9e96c40b2db 100644 --- a/source/blender/editors/gpencil/gpencil_paint.c +++ b/source/blender/editors/gpencil/gpencil_paint.c @@ -997,7 +997,7 @@ static void gpencil_stroke_newfrombuffer(tGPsdata *p) gps->uv_scale = 1.0f; /* Set stroke caps. */ - gps->caps[0] = gps->caps[1] = brush->gpencil_settings->caps_type; + gps->caps[0] = gps->caps[1] = (short)brush->gpencil_settings->caps_type; /* allocate enough memory for a continuous array for storage points */ const int subdivide = brush->gpencil_settings->draw_subdivide; -- cgit v1.2.3