Fix blender environment map texture looking different on the first render with

an image file, the image extend is set automatically when render starts but not
when the image was never loaded yet.
This commit is contained in:
Brecht Van Lommel
2013-07-09 13:47:19 +00:00
parent c3c84521f1
commit 79f264bd69

View File

@@ -722,6 +722,10 @@ int envmaptex(Tex *tex, const float texvec[3], float dxt[3], float dyt[3], int o
envmap_split_ima(env, ibuf_ima);
else
env->ok = 0;
if (env->type == ENV_PLANE)
tex->extend = TEX_EXTEND;
BKE_image_pool_release_ibuf(env->ima, ibuf_ima, pool);
}
}