From 458131e3957d14d7440acd7fe12a0e381fbf936f Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 3 Dec 2012 16:19:38 +0000 Subject: [PATCH] Disable alpha pass for all painting modes It's not actually supported and gives artifacts when tried to be used. --- source/blender/editors/space_view3d/drawobject.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); }