diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2017-05-18 11:15:35 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2017-05-18 13:13:19 +0300 |
commit | 5919919955f6ec40f881705e587355d0334c00ea (patch) | |
tree | 6ed0c6d0f2bc154ace12ef6ca28e22785ac92945 /source/blender/draw/intern | |
parent | c75cde31dbb1a427363d9dedef53f3f93a7a26d5 (diff) |
DwM: Armature: refine drawing condition of envelope distance outline.
Should match better original 2.7x behavior now.
Diffstat (limited to 'source/blender/draw/intern')
-rw-r--r-- | source/blender/draw/intern/draw_armature.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_armature.c b/source/blender/draw/intern/draw_armature.c index d7ec210b728..3d320465935 100644 --- a/source/blender/draw/intern/draw_armature.c +++ b/source/blender/draw/intern/draw_armature.c @@ -1028,7 +1028,9 @@ static void draw_bone_envelope( rad_head = (pchan->parent && (boneflag & BONE_CONNECTED)) ? &pchan->parent->bone->rad_tail : &pchan->bone->rad_head; } - if (boneflag & BONE_SELECTED) { + if ((boneflag & BONE_NO_DEFORM) == 0 && + ((boneflag & BONE_SELECTED) || (eBone && (boneflag & (BONE_ROOTSEL | BONE_TIPSEL))))) + { DRW_shgroup_bone_envelope_distance(BONE_VAR(eBone, pchan, disp_mat), col_white, rad_head, rad_tail, distance); } |