[Bf-blender-cvs] [2d1879b] blender-v2.74-release: Fix T43959 jittering in 2D texture painting.

Antony Riakiotakis noreply at git.blender.org
Tue Mar 17 11:50:12 CET 2015


Commit: 2d1879b7145dd71d84f403791093fbca47775d6d
Author: Antony Riakiotakis
Date:   Fri Mar 13 13:09:52 2015 +0100
Branches: blender-v2.74-release
https://developer.blender.org/rB2d1879b7145dd71d84f403791093fbca47775d6d

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