[Bf-blender-cvs] [79393cb] master: Fix T43959 jittering in 2D texture painting.

Antony Riakiotakis noreply at git.blender.org
Fri Mar 13 13:10:52 CET 2015


Commit: 79393cb7a2dfef3bd7205b1a68558aaba2f2b5da
Author: Antony Riakiotakis
Date:   Fri Mar 13 13:09:52 2015 +0100
Branches: master
https://developer.blender.org/rB79393cb7a2dfef3bd7205b1a68558aaba2f2b5da

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.

===================================================================

M	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 b0fd6a9..eb96d1d 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;




More information about the Bf-blender-cvs mailing list