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:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-12-03 20:19:38 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-12-03 20:19:38 +0400
commit458131e3957d14d7440acd7fe12a0e381fbf936f (patch)
treeec89f63f9ae66db78018a1884c27a1394699a249 /source/blender/editors/space_view3d
parent6ce73abde849ee49792219e3c8936bcadef38fdb (diff)
Disable alpha pass for all painting modes
It's not actually supported and gives artifacts when tried to be used.
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r--source/blender/editors/space_view3d/drawobject.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c
index 4a89deca162..5ac7327b93b 100644
--- a/source/blender/editors/space_view3d/drawobject.c
+++ b/source/blender/editors/space_view3d/drawobject.c
@@ -229,7 +229,10 @@ static int check_alpha_pass(Base *base)
if (G.f & G_PICKSEL)
return 0;
-
+
+ if (base->object->mode & OB_MODE_ALL_PAINT)
+ return 0;
+
return (base->object->dtx & OB_DRAWTRANSP);
}