When you disable a texture channel using Displacement in a Material, the
initialize code and renderconvert code still though this was active.
This commit is contained in:
Ton Roosendaal 2006-04-10 10:14:26 +00:00
parent b2b1b7c90b
commit 3be0c804ae

@ -574,6 +574,10 @@ static void do_init_render_material(Material *ma, int osa, float *amb)
ma->texco= 0;
ma->mapto= 0;
for(a=0; a<MAX_MTEX; a++) {
/* separate tex switching */
if(ma->septex & (1<<a)) continue;
mtex= ma->mtex[a];
if(mtex && mtex->tex) {