Saving envmap, with a filter set (like gauss) and with a percentage set
(like 50%), saved envmaps with empty pixels inbetween the sub images.
This commit is contained in:
2005-12-13 13:38:14 +00:00
parent b284a95222
commit 082e589c1a

View File

@@ -100,8 +100,9 @@ void BIF_save_envmap(EnvMap *env, char *str)
int dx;
/* all interactive stuff is handled in buttons.c */
dx= (env->cuberes * R.r.size) / 100;
if(env->cube[0]->ibuf==NULL) return;
dx= env->cube[0]->ibuf->x;
ibuf= IMB_allocImBuf(3*dx, 2*dx, 24, IB_rect, 0);
IMB_rectop(ibuf, env->cube[0]->ibuf,