Envmap render error; when no (f10) envmap option was used, it could give
a 'stripe' effect based on a non-initialized global value. Only happens
for transparant layers...
This commit is contained in:
Ton Roosendaal 2004-06-13 17:40:25 +00:00
parent 694ed26f8b
commit 7f3dcd7c64

@ -648,8 +648,10 @@ int envmaptex(Tex *tex, float *texvec, float *dxt, float *dyt, int osatex)
int face, face1; int face, face1;
env= tex->env; env= tex->env;
if(env==0 || env->object==0) return 0; if(env==0 || env->object==0) {
Tin= 0.0;
return 0;
}
if(env->stype==ENV_LOAD) { if(env->stype==ENV_LOAD) {
env->ima= tex->ima; env->ima= tex->ima;
if(env->ima && env->ima->ok) { if(env->ima && env->ima->ok) {