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.
This commit is contained in:
Antonis Ryakiotakis 2015-03-13 13:09:52 +01:00
parent a0a6cb129e
commit 79393cb7a2
Notes: blender-bot 2023-02-14 09:23:45 +01:00
Referenced by issue #43959, Texture Paint: "Jittering" when enabling radius pressure
1 changed files with 2 additions and 2 deletions

View File

@ -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;