forked from bartvdbraak/blender
Bug 1349
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:
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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user