Bugfix
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user