Silly error in code initialized envmap "Render" struct wrong. It didn't
work for ortho render, so also crashed on previews in ortho 3d window.
This commit is contained in:
2006-11-12 11:03:34 +00:00
parent 883f7dd4d5
commit 72f620fef3
2 changed files with 2 additions and 2 deletions

View File

@@ -135,7 +135,7 @@ static Render *envmap_render_copy(Render *re, EnvMap *env)
envre->r.size= 100;
envre->r.yasp= envre->r.xasp= 1;
RE_InitState(envre, &re->r, cuberes, cuberes, NULL);
RE_InitState(envre, &envre->r, cuberes, cuberes, NULL);
envre->scene= re->scene; /* unsure about this... */
/* view stuff in env render */

View File

@@ -504,7 +504,7 @@ void RE_SetCamera(Render *re, Object *camera)
}
/* ortho only with camera available */
if(re->r.mode & R_ORTHO) {
if(cam && (re->r.mode & R_ORTHO)) {
if( (re->r.xasp*re->winx) >= (re->r.yasp*re->winy) ) {
re->viewfac= re->winx;
}