- removed an old optimization line from code, which caused stenciling
authorTon Roosendaal <ton@blender.org>
Tue, 25 Nov 2003 18:45:05 +0000 (18:45 +0000)
committerTon Roosendaal <ton@blender.org>
Tue, 25 Nov 2003 18:45:05 +0000 (18:45 +0000)
  with multiple bump-mapping channels not to work

source/blender/blenkernel/intern/texture.c

index 5f32b850b976e6348921d9689092ebcbc05ff0c8..8afa83b7fa79bb2fa9b0fe92bd170ddb7c4c0a82 100644 (file)
@@ -1526,9 +1526,9 @@ void do_material_tex()
                                }
                        }
                        else {
                                }
                        }
                        else {
-                               if(rgbnor & TEX_RGB) Ta*= stencilTin;
-                               else if(rgbnor & TEX_NOR) Tnor*= stencilTin;
-                               else Tin*= stencilTin;
+                               Ta*= stencilTin;
+                               Tnor*= stencilTin;
+                               Tin*= stencilTin;
                        }
 
                        if(tex->nor && (rgbnor & TEX_NOR)==0) {
                        }
 
                        if(tex->nor && (rgbnor & TEX_NOR)==0) {