From 79393cb7a2dfef3bd7205b1a68558aaba2f2b5da Mon Sep 17 00:00:00 2001 From: Antony Riakiotakis Date: Fri, 13 Mar 2015 13:09:52 +0100 Subject: Fix T43959 jittering in 2D texture painting. This is still not perfect, but should work smoother now. Previously there was visible wobbling while painting. This can be included in final release. --- source/blender/editors/sculpt_paint/paint_image_2d.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/sculpt_paint/paint_image_2d.c') diff --git a/source/blender/editors/sculpt_paint/paint_image_2d.c b/source/blender/editors/sculpt_paint/paint_image_2d.c index b0fd6a9fa6b..eb96d1d20d5 100644 --- a/source/blender/editors/sculpt_paint/paint_image_2d.c +++ b/source/blender/editors/sculpt_paint/paint_image_2d.c @@ -345,8 +345,8 @@ static unsigned short *brush_painter_curve_mask_new(BrushPainter *painter, int d { Brush *brush = painter->brush; - int xoff = -diameter * 0.5f + 0.5f; - int yoff = -diameter * 0.5f + 0.5f; + int xoff = -radius; + int yoff = -radius; unsigned short *mask, *m; int x, y; -- cgit v1.2.3