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-06 19:36:27 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-05-06 19:42:23 +0300
commitc769b1a5533bb0fcf04452cde4d81dd77f7ae03b (patch)
treef80d6bb3a8a9ab41f07e3f71e2a0eb2ab62d17e3 /source/blender/draw/intern/draw_common.h
parent48ddb2b98a5d9f77d5589afd137019dc85f1e460 (diff)
Armature: Add a special Pass for bone axes.
In object mode, the axes are drawn like any other wire objects with depth test and depth write. Thus enabling MSAA to work but not their xray behaviour. In edit armature/pose mode, draw smooth line without depth testing. This produces wrong draw ordering problem but still gives the desired xray behaviour. We do it outside of the MSAA pass since the xray behaviour is not compatible with it. But we are drawing smoothed lines so no need for MSAA. The lines are 2px thick and improve readability.
Diffstat (limited to 'source/blender/draw/intern/draw_common.h')
-rw-r--r--source/blender/draw/intern/draw_common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_common.h b/source/blender/draw/intern/draw_common.h
index d53538f10d4..ae1c449399a 100644
--- a/source/blender/draw/intern/draw_common.h
+++ b/source/blender/draw/intern/draw_common.h
@@ -135,6 +135,7 @@ typedef struct DRWArmaturePasses{
struct DRWPass *bone_outline;
struct DRWPass *bone_wire;
struct DRWPass *bone_envelope;
+ struct DRWPass *bone_axes;
} DRWArmaturePasses;
void DRW_shgroup_armature_object(