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
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2015-03-13 15:09:52 +0300
committerAntony Riakiotakis <kalast@gmail.com>2015-03-13 15:10:38 +0300
commit79393cb7a2dfef3bd7205b1a68558aaba2f2b5da (patch)
tree46214dbf09f313941c554e88c789f4eb506c7b24 /source/blender/editors/sculpt_paint/paint_image_2d.c
parenta0a6cb129e9df46e80dec891b535992e773901af (diff)
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.
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_image_2d.c')
-rw-r--r--source/blender/editors/sculpt_paint/paint_image_2d.c4
1 files changed, 2 insertions, 2 deletions
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;