In camera view, with ortho camera, the current camera was drawn with
unpredictable sizes. The code was not written to work for ortho, so
I check on that now. Means camera isnt visible itself then, which
is minor I think. Nice for a todo once...
This commit is contained in:
Ton Roosendaal
2004-07-21 21:27:14 +00:00
parent d7dd942678
commit 866f03db8c

View File

@@ -663,6 +663,9 @@ void drawcamera(Object *ob)
float vec[8][4], tmat[4][4], fac, facx, facy, depth;
cam= ob->data;
/* this code only works for perspective */
if(G.vd->persp==2 && ob==G.vd->camera && cam->type==CAM_ORTHO) return;
glDisable(GL_LIGHTING);
glDisable(GL_CULL_FACE);