diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-05-15 15:16:01 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-05-15 15:16:01 +0400 |
commit | 98beda156c5e5c05c340abc929c585b8556e99fc (patch) | |
tree | fc210fe656d77a94d79868b5f72eeaa23e7112c7 /source/blender/editors/sculpt_paint/paint_image_2d.c | |
parent | e1cb4aade83dbee536e75fb15d64905c918d045d (diff) |
Fix part of #35372: distorted strokes when painting zoomed out with a small brush
size. Interpolated mouse coordinates should not get rounded to integers.
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_image_2d.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_image_2d.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image_2d.c b/source/blender/editors/sculpt_paint/paint_image_2d.c index 48a23641bdb..956dcc858f8 100644 --- a/source/blender/editors/sculpt_paint/paint_image_2d.c +++ b/source/blender/editors/sculpt_paint/paint_image_2d.c @@ -1016,7 +1016,7 @@ static void paint_2d_canvas_free(ImagePaintState *s) image_undo_remove_masks(); } -int paint_2d_stroke(void *ps, const int prev_mval[2], const int mval[2], int eraser) +int paint_2d_stroke(void *ps, const float prev_mval[2], const float mval[2], int eraser) { float newuv[2], olduv[2]; int redraw = 0; |