diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-02-22 16:24:09 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-02-22 16:24:09 +0300 |
commit | 48752d880225c373b1be177b008eec6b9b61d510 (patch) | |
tree | 23e185e443da1ec62305528581798f6d3c74486d /source/blender/editors/space_view3d | |
parent | d4f0e10cc47f89cbfcd14b4c70dfba25b019e7dc (diff) |
OpenGL: Fix Object Axes color
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r-- | source/blender/editors/space_view3d/drawobject.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c index fb190293d72..1b8acde4219 100644 --- a/source/blender/editors/space_view3d/drawobject.c +++ b/source/blender/editors/space_view3d/drawobject.c @@ -8753,7 +8753,13 @@ afterdraw: if (dtx && (G.f & G_RENDER_OGL) == 0) { if (dtx & OB_AXIS) { - drawaxes(rv3d->viewmatob, 1.0f, OB_ARROWS, NULL); + if ((dflag & DRAW_CONSTCOLOR) == 0) { + /* prevent random colors being used */ + drawaxes(rv3d->viewmatob, 1.0f, OB_ARROWS, ob_wire_col); + } + else { + drawaxes(rv3d->viewmatob, 1.0f, OB_ARROWS, NULL); + } } if (dtx & OB_DRAWBOUNDOX) { draw_bounding_volume(ob, ob->boundtype); |