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:
authorAntony Riakiotakis <kalast@gmail.com>2014-08-12 18:17:07 +0400
committerAntony Riakiotakis <kalast@gmail.com>2014-08-12 18:17:21 +0400
commitefc3ef2d3b8829101d7ab41f0b43c05753152ea3 (patch)
tree5ad6a186463dbd10976b1fab6e02f20469a0261e /source/blender
parentf4dc4bb774519784deedd4a878a93407c8378038 (diff)
Change previous commit that uses transparency by default.
Sampling still samples the texture color in transparent areas. This is not so bad but users may get confused when clicking on a white spot and picking black instead of the mesh color. Krita also has this uncertainty when picking in transparent areas but we do not interpolate with an explicit "transparent" looking texture during viewport drawing (maybe we should), so it's not so apparent what happens here.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/sculpt_paint/paint_image_proj.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image_proj.c b/source/blender/editors/sculpt_paint/paint_image_proj.c
index e86de261643..1bad0663611 100644
--- a/source/blender/editors/sculpt_paint/paint_image_proj.c
+++ b/source/blender/editors/sculpt_paint/paint_image_proj.c
@@ -4855,7 +4855,7 @@ bool proj_paint_add_slot(bContext *C, Material *ma, wmOperator *op)
mtex->mapto = type;
if (mtex->tex) {
- float color[4] = {0.0f, 0.0f, 0.0f, 0.0f};
+ float color[4] = {0.0f, 0.0f, 0.0f, 1.0f};
char imagename[MAX_ID_NAME - 2] = "Material Diffuse Color";
int width = 1024;
int height = 1024;
@@ -4923,7 +4923,7 @@ static int texture_paint_add_texture_paint_slot_invoke(bContext *C, wmOperator *
void PAINT_OT_add_texture_paint_slot(wmOperatorType *ot)
{
PropertyRNA *prop;
- static float default_color[4] = {0.0f, 0.0f, 0.0f, 0.0f};
+ static float default_color[4] = {0.0f, 0.0f, 0.0f, 1.0f};
/* identifiers */
ot->name = "Add Texture Paint Slot";