From 45a0287f45e48d2a6224ec73f6d58890344b1ca3 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 23 Aug 2012 06:27:12 +0000 Subject: change I made gave a little nicer bleeding direction for inpaint but introduced dithering artifact. --- source/blender/compositor/operations/COM_InpaintOperation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/compositor/operations/COM_InpaintOperation.cpp') diff --git a/source/blender/compositor/operations/COM_InpaintOperation.cpp b/source/blender/compositor/operations/COM_InpaintOperation.cpp index bfc0ecd1c00..70d4d987c81 100644 --- a/source/blender/compositor/operations/COM_InpaintOperation.cpp +++ b/source/blender/compositor/operations/COM_InpaintOperation.cpp @@ -182,8 +182,8 @@ void InpaintSimpleOperation::pix_step(int x, int y) for (int dx = -1; dx <= 1; dx++) { for (int dy = -1; dy <= 1; dy++) { - if (dx != 0 && dy != 0) { - + /* changing to both != 0 gives dithering artifacts */ + if (dx != 0 || dy != 0) { int x_ofs = x + dx; int y_ofs = y + dy; -- cgit v1.2.3