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:
authorClément Foucault <foucault.clem@gmail.com>2018-05-07 16:10:11 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-05-07 18:00:10 +0300
commit8ab3697e2107b955e188f4dec9d264df98e23d97 (patch)
tree7a4ebd8371a6d696b80b0515cb537e04bca03035 /source/blender/draw/modes/object_mode.c
parent2f76e95b96fc87a8ec598c5f8a9242bc220ad9c2 (diff)
Armature: Add new Transparent Bone overlay option.
This is half the replacement of the old wireframe mode. It's not doing any XRay drawing at the moment.
Diffstat (limited to 'source/blender/draw/modes/object_mode.c')
-rw-r--r--source/blender/draw/modes/object_mode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/modes/object_mode.c b/source/blender/draw/modes/object_mode.c
index 1cfc8e9403d..312928c57f6 100644
--- a/source/blender/draw/modes/object_mode.c
+++ b/source/blender/draw/modes/object_mode.c
@@ -987,7 +987,7 @@ static void OBJECT_cache_init(void *vedata)
{
/* Solid bones */
- DRWState state = DRW_STATE_WRITE_COLOR | DRW_STATE_WRITE_DEPTH | DRW_STATE_DEPTH_LESS;
+ DRWState state = DRW_STATE_WRITE_COLOR | DRW_STATE_WRITE_DEPTH | DRW_STATE_DEPTH_LESS | DRW_STATE_CULL_BACK;
psl->bone_solid = DRW_pass_create("Bone Solid Pass", state);
psl->bone_outline = DRW_pass_create("Bone Outline Pass", state);
}