diff options
author | Ton Roosendaal <ton@blender.org> | 2010-12-20 16:32:26 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2010-12-20 16:32:26 +0300 |
commit | 63b9d0bcaaad02203e855cf270f70f3ace5d11f8 (patch) | |
tree | d04a424c50db2b3e7ef4ad455a2ea460d25ec9d0 | |
parent | 291a66d21234dcc7593db5ac8b887d2f04f37f99 (diff) |
3D ortho view: the axes lines of grid had wrong color for X.
Thanks Mario Kishalmi for the report :)
-rw-r--r-- | source/blender/editors/space_view3d/view3d_draw.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c index 35ea3f10d48..968579dbd1d 100644 --- a/source/blender/editors/space_view3d/view3d_draw.c +++ b/source/blender/editors/space_view3d/view3d_draw.c @@ -397,13 +397,15 @@ static void drawgrid(UnitSettings *unit, ARegion *ar, View3D *v3d, const char ** setlinestyle(0); /* center cross */ + /* horizontal line */ if( ELEM(rv3d->view, RV3D_VIEW_RIGHT, RV3D_VIEW_LEFT)) UI_make_axis_color(col, col2, 'Y'); - else UI_make_axis_color(col, col2, 'Z'); + else UI_make_axis_color(col, col2, 'X'); glColor3ubv(col2); fdrawline(0.0, y, (float)ar->winx, y); + /* vertical line */ if( ELEM(rv3d->view, RV3D_VIEW_TOP, RV3D_VIEW_BOTTOM)) UI_make_axis_color(col, col2, 'Y'); else UI_make_axis_color(col, col2, 'Z'); |