Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2005-12-13 16:38:14 +0300
committerTon Roosendaal <ton@blender.org>2005-12-13 16:38:14 +0300
commit082e589c1a38c86044d4e30bb2d52e703143eee5 (patch)
tree7581caac0c0f37e454a03aa1836091b49d8dcfec /source/blender/src/writeimage.c
parentb284a95222223ab2ff0028ea2a6c15fadf707c88 (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.c5
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,