[Bf-blender-cvs] [d1c9852] master: Missed this last commit
Antony Riakiotakis
noreply at git.blender.org
Thu Apr 30 14:24:58 CEST 2015
Commit: d1c98520f7b792d5f2f1f2d1eb51d08d172e2e22
Author: Antony Riakiotakis
Date: Thu Apr 30 14:24:05 2015 +0200
Branches: master
https://developer.blender.org/rBd1c98520f7b792d5f2f1f2d1eb51d08d172e2e22
Missed this last commit
===================================================================
M source/blender/editors/sculpt_paint/paint_image_2d.c
===================================================================
diff --git a/source/blender/editors/sculpt_paint/paint_image_2d.c b/source/blender/editors/sculpt_paint/paint_image_2d.c
index f0c4779..1ad700b 100644
--- a/source/blender/editors/sculpt_paint/paint_image_2d.c
+++ b/source/blender/editors/sculpt_paint/paint_image_2d.c
@@ -1306,12 +1306,12 @@ static void paint_2d_fill_add_pixel_byte(
const int x_px, const int y_px, ImBuf *ibuf, BLI_Stack *stack, BLI_bitmap *touched,
const float color[4], float threshold_sq)
{
- int coordinate;
+ size_t coordinate;
if (x_px >= ibuf->x || x_px < 0 || y_px >= ibuf->y || y_px < 0)
return;
- coordinate = y_px * ibuf->x + x_px;
+ coordinate = ((size_t)y_px) * ibuf->x + x_px;
if (!BLI_BITMAP_TEST(touched, coordinate)) {
float color_f[4];
More information about the Bf-blender-cvs
mailing list