Blender Git Commit Log

Git Commits -> Revision c769b1a

Revision c769b1a by Clément Foucault (master)
May 6, 2018, 16:39 (GMT)
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.

Commit Details:

Full Hash: c769b1a5533bb0fcf04452cde4d81dd77f7ae03b
Parent Commit: 48ddb2b
Lines Changed: +30, -1

5 Modified Paths:

/source/blender/draw/intern/draw_armature.c (+1, -1) (Diff)
/source/blender/draw/intern/draw_common.h (+1, -0) (Diff)
/source/blender/draw/modes/edit_armature_mode.c (+10, -0) (Diff)
/source/blender/draw/modes/object_mode.c (+8, -0) (Diff)
/source/blender/draw/modes/pose_mode.c (+10, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021