diff options
author | Ton Roosendaal <ton@blender.org> | 2010-12-03 22:29:05 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2010-12-03 22:29:05 +0300 |
commit | 1ebfb545ee3152369d3b834d98ce179d1d8171a0 (patch) | |
tree | e52181085ec6aeb38cb1daf462125d4c6e727b3e /source | |
parent | c8f80fffbab56db0b0b1864d51e739a441a5db1e (diff) |
Bugfix #2508
Campbell's cleanup commit 33442 today broke axes drawing.
Restored code.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_view3d/drawobject.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c index 65b621b1d7a..c6a8feebe4d 100644 --- a/source/blender/editors/space_view3d/drawobject.c +++ b/source/blender/editors/space_view3d/drawobject.c @@ -413,6 +413,9 @@ void drawaxes(float size, char drawtype) case OB_PLAINAXES: for (axis=0; axis<3; axis++) { + float v1[3]= {0.0, 0.0, 0.0}; + float v2[3]= {0.0, 0.0, 0.0}; + glBegin(GL_LINES); v1[axis]= size; @@ -475,6 +478,8 @@ void drawaxes(float size, char drawtype) case OB_ARROWS: default: for (axis=0; axis<3; axis++) { + float v1[3]= {0.0, 0.0, 0.0}; + float v2[3]= {0.0, 0.0, 0.0}; int arrow_axis= (axis==0)?1:0; glBegin(GL_LINES); |