From fe7de92c47b79aed701d5c0042a7f22bdcea545a Mon Sep 17 00:00:00 2001 From: Antony Riakiotakis Date: Wed, 27 Aug 2014 14:44:36 +0200 Subject: Revert "Fix part of T41406" This reverts commit 7c7cb01aa5641414d9f0c39ab81df0f57205f362. The smoothing weights will cause shifting in the image if not calculated as they were in the branch. Solution for better performance will be to force-clip kernel to a square of size two for projective painting. --- source/blender/editors/sculpt_paint/paint_intern.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/sculpt_paint/paint_intern.h') diff --git a/source/blender/editors/sculpt_paint/paint_intern.h b/source/blender/editors/sculpt_paint/paint_intern.h index 8d42bbb7800..d0cd59d7be6 100644 --- a/source/blender/editors/sculpt_paint/paint_intern.h +++ b/source/blender/editors/sculpt_paint/paint_intern.h @@ -288,7 +288,7 @@ typedef struct { float *wdata; /* actual kernel */ int side; /* kernel side */ int side_squared; /* data side */ - float pixel_len; /* pixels around center that kernel is wide */ + int pixel_len; /* pixels around center that kernel is wide */ } BlurKernel; enum BlurKernelType; -- cgit v1.2.3