diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-05-06 17:09:25 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-05-06 19:36:47 +0300 |
commit | c472936074a0744d69cf8453455ffff11a6597d0 (patch) | |
tree | 887fab5a25700202e86e817b253e91164baa1352 /source/blender/draw/intern/draw_armature.c | |
parent | 1a81ac7d9ac7dce0657e57fb291bf3559e3a5178 (diff) |
Armature: Fix/Change bone axes display.
Now the axes are displayed correctly at the tip of the bone and with the
axes names.
I've made some modifications though:
- Axes are colored. (should not be in object mode but that's TODO)
- Axes ends are not flat arrows anymore. Replaced with a small diamond.
- Axes names are now scale by their respective axes instead of being
affected by other axes.
- Changed axes names "font" to be a bit more sexy.
Diffstat (limited to 'source/blender/draw/intern/draw_armature.c')
-rw-r--r-- | source/blender/draw/intern/draw_armature.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/draw/intern/draw_armature.c b/source/blender/draw/intern/draw_armature.c index d2a36f2794c..e4b9ddc7631 100644 --- a/source/blender/draw/intern/draw_armature.c +++ b/source/blender/draw/intern/draw_armature.c @@ -315,8 +315,7 @@ static void drw_shgroup_bone_point( static void drw_shgroup_bone_axes(const float (*bone_mat)[4], const float color[4]) { if (g_data.bone_axes == NULL) { - struct Gwn_Batch *geom = DRW_cache_bone_arrows_get(); - g_data.bone_axes = shgroup_instance_wire(g_data.pass_bone_wire, geom); + g_data.bone_axes = shgroup_instance_bone_axes(g_data.pass_bone_wire); } float final_bonemat[4][4]; mul_m4_m4m4(final_bonemat, g_data.ob->obmat, bone_mat); |