Bugfix #5207
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:
@@ -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 */
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user