diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-10-01 17:27:59 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-10-01 17:27:59 +0400 |
commit | 2e44e06450d334503771626c647c03c99e4671a0 (patch) | |
tree | 3dc3c990337323cd602a32f26b403225f71cef04 | |
parent | ebca34a2820b04b6abf0b56e31d838728435ef18 (diff) |
minor adjustment to camera object drawing so arrow stays same size independent of aspect.
-rw-r--r-- | source/blender/editors/space_view3d/drawobject.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c index d636a544e5b..30b12b96ed5 100644 --- a/source/blender/editors/space_view3d/drawobject.c +++ b/source/blender/editors/space_view3d/drawobject.c @@ -1281,17 +1281,16 @@ static void drawcamera(Scene *scene, View3D *v3d, RegionView3D *rv3d, Object *ob else if (i==1 && (ob == v3d->camera)) glBegin(GL_TRIANGLES); else break; - vec[0][0]= -0.7*cam->drawsize*caspx; - vec[0][1]= 1.1*cam->drawsize*caspy; - glVertex3fv(vec[0]); + vec[0][0]= -0.7 * cam->drawsize; + vec[0][1]= cam->drawsize * (caspy + 0.1); + glVertex3fv(vec[0]); /* left */ - vec[0][0]= 0.0; - vec[0][1]= 1.8*cam->drawsize*caspy; - glVertex3fv(vec[0]); + vec[0][0] *= -1.0; + glVertex3fv(vec[0]); /* right */ - vec[0][0]= 0.7*cam->drawsize*caspx; - vec[0][1]= 1.1*cam->drawsize*caspy; - glVertex3fv(vec[0]); + vec[0][0]= 0.0; + vec[0][1]= 1.1 * cam->drawsize * (caspy + 0.7); + glVertex3fv(vec[0]); /* top */ glEnd(); } |