diff options
author | Ton Roosendaal <ton@blender.org> | 2005-12-13 16:38:14 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-12-13 16:38:14 +0300 |
commit | 082e589c1a38c86044d4e30bb2d52e703143eee5 (patch) | |
tree | 7581caac0c0f37e454a03aa1836091b49d8dcfec /source/blender/src/writeimage.c | |
parent | b284a95222223ab2ff0028ea2a6c15fadf707c88 (diff) |
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.
Diffstat (limited to 'source/blender/src/writeimage.c')
-rw-r--r-- | source/blender/src/writeimage.c | 5 |
1 files changed, 3 insertions, 2 deletions
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, |