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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2014-02-24 18:43:26 +0400
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2014-02-24 18:44:22 +0400
commit7ef1ed15f10c46275486fce1bca0b0355848b32d (patch)
tree899d7abebaf75a256526d52bbc557da480f1933e /source/blender/gpu
parenta3f4736a4d34d9a85ee32a43d2425c7b916a20ec (diff)
Fix T38766: blender material transparency setting not taken into account for viewport.
Diffstat (limited to 'source/blender/gpu')
-rw-r--r--source/blender/gpu/intern/gpu_draw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_draw.c b/source/blender/gpu/intern/gpu_draw.c
index b9de6721f91..164d0c0b3f5 100644
--- a/source/blender/gpu/intern/gpu_draw.c
+++ b/source/blender/gpu/intern/gpu_draw.c
@@ -1485,7 +1485,7 @@ void GPU_begin_object_materials(View3D *v3d, RegionView3D *rv3d, Scene *scene, O
/* fixed function opengl materials */
gpu_material_to_fixed(&GMS.matbuf[a], ma, gamma, ob, new_shading_nodes);
- if (GMS.use_alpha_pass) {
+ if (GMS.use_alpha_pass && (ma->mode & MA_TRANSP)) {
GMS.matbuf[a].diff[3]= ma->alpha;
alphablend = (ma->alpha == 1.0f)? GPU_BLEND_SOLID: GPU_BLEND_ALPHA;
}