From 082e589c1a38c86044d4e30bb2d52e703143eee5 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Tue, 13 Dec 2005 13:38:14 +0000 Subject: Bugfix #3579 Saving envmap, with a filter set (like gauss) and with a percentage set (like 50%), saved envmaps with empty pixels inbetween the sub images. --- source/blender/src/writeimage.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source/blender/src/writeimage.c') diff --git a/source/blender/src/writeimage.c b/source/blender/src/writeimage.c index 40160c42367..f386ea3ecf0 100644 --- a/source/blender/src/writeimage.c +++ b/source/blender/src/writeimage.c @@ -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, -- cgit v1.2.3