Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-03-07 01:53:31 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-03-07 01:53:31 +0300
commit8f330a333a389014e3fd801c7b9865160ce21b78 (patch)
tree52a88bcbb0fbc642594b96cd6db0b1462a749466 /source/blender/editors/sculpt_paint/paint_image.c
parentc50bfd486e4e28a6bb42ca734e7950f9cabb7435 (diff)
masking wast used for reprojectuion (used for stencil & normal falloff)
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_image.c')
-rw-r--r--source/blender/editors/sculpt_paint/paint_image.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image.c b/source/blender/editors/sculpt_paint/paint_image.c
index ec7a7f81850..bd4462c7913 100644
--- a/source/blender/editors/sculpt_paint/paint_image.c
+++ b/source/blender/editors/sculpt_paint/paint_image.c
@@ -3738,8 +3738,10 @@ static void *do_projectpaint_thread(void *ph_v)
projPixel = (ProjPixel *)node->link;
bicubic_interpolation_color(ps->reproject_ibuf, projPixel->newColor.ch, NULL, projPixel->projCoSS[0], projPixel->projCoSS[1]);
- if(projPixel->newColor.ch[3])
+ if(projPixel->newColor.ch[3]) {
+ mask = ((float)projPixel->mask)/65535.0f;
blend_color_mix_rgb(projPixel->pixel.ch_pt, projPixel->origColor.ch, projPixel->newColor.ch, (mask*projPixel->newColor.ch[3]));
+ }
}
}
else {