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
committerSergey Sharybin <sergey.vfx@gmail.com>2015-03-17 13:49:17 +0300
commit2d1879b7145dd71d84f403791093fbca47775d6d (patch)
treeaa4cc7779881d30e92a68a02836d427fcbf55630
parent86b862ecc90783750aec59e474cfa6973acbafef (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.
-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;