diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-08-23 10:27:12 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-08-23 10:27:12 +0400 |
commit | 45a0287f45e48d2a6224ec73f6d58890344b1ca3 (patch) | |
tree | b3c8859c88aa90c010e203872b8341503f3c3afd /source/blender/compositor/operations/COM_InpaintOperation.cpp | |
parent | 6e90903bafa54ae25b887bd6bddeef787c3c5a29 (diff) |
change I made gave a little nicer bleeding direction for inpaint but introduced dithering artifact.
Diffstat (limited to 'source/blender/compositor/operations/COM_InpaintOperation.cpp')
-rw-r--r-- | source/blender/compositor/operations/COM_InpaintOperation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |