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
path: root/source
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2021-08-09 16:28:12 +0300
committerAntonio Vazquez <blendergit@gmail.com>2021-08-09 16:28:12 +0300
commit71e2c366f7d19d8fe4f160a60597e63692fdc7ca (patch)
tree979ead40b5b3087993cf3f1a1df0abecfe05437a /source
parent6fe00939b0a471cc149ea5b3c63ca57b049b4a37 (diff)
Cleanup: Fix compiler warning
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/gpencil/gpencil_paint.c2
1 files changed, 1 insertions, 1 deletions
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;