Environment map type "load" which was not used for material, but on sky,
crashed when the envmap file could not be found.
This commit is contained in:
2007-01-31 11:49:30 +00:00
parent ed24fe31d1
commit c82574e04a

View File

@@ -632,7 +632,10 @@ int envmaptex(Tex *tex, float *texvec, float *dxt, float *dyt, int osatex, TexRe
if(env->ima && env->ima->ok) {
if(env->cube[0]==NULL) {
ImBuf *ibuf= BKE_image_get_ibuf(env->ima, NULL);
envmap_split_ima(env, ibuf);
if(ibuf)
envmap_split_ima(env, ibuf);
else
env->ok= 0;
}
}
}