[Bf-blender-cvs] [43593e846bb] blender2.8: Matcap: Fix missing pixel on preview icons
Clément Foucault
noreply at git.blender.org
Mon Jul 16 20:08:14 CEST 2018
Commit: 43593e846bbed183a54ee1dae1b76f3f8c4be9bf
Author: Clément Foucault
Date: Wed Jul 11 19:01:12 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB43593e846bbed183a54ee1dae1b76f3f8c4be9bf
Matcap: Fix missing pixel on preview icons
===================================================================
M source/blender/blenkernel/intern/studiolight.c
===================================================================
diff --git a/source/blender/blenkernel/intern/studiolight.c b/source/blender/blenkernel/intern/studiolight.c
index 200c50e5c23..5381d2be691 100644
--- a/source/blender/blenkernel/intern/studiolight.c
+++ b/source/blender/blenkernel/intern/studiolight.c
@@ -1037,7 +1037,7 @@ static void studiolight_matcap_preview(uint *icon_buffer, StudioLight *sl, bool
if (flipped) {
fx = 1.0f - fx;
}
- nearest_interpolation_color(ibuf, NULL, color, fx * ibuf->x, fy * ibuf->y);
+ nearest_interpolation_color(ibuf, NULL, color, fx * ibuf->x - 1.0f, fy * ibuf->y - 1.0f);
uint alphamask = alpha_circle_mask(fx, fy, 0.5f - pixel_size, 0.5f);
More information about the Bf-blender-cvs
mailing list