Revision: 26364
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=26364
Author:   blendix
Date:     2010-01-28 12:40:38 +0100 (Thu, 28 Jan 2010)

Log Message:
-----------
Fix #20223: texture stencil does not work on normal.

Modified Paths:
--------------
    trunk/blender/source/blender/render/intern/source/texture.c

Modified: trunk/blender/source/blender/render/intern/source/texture.c
===================================================================
--- trunk/blender/source/blender/render/intern/source/texture.c 2010-01-28 
10:57:31 UTC (rev 26363)
+++ trunk/blender/source/blender/render/intern/source/texture.c 2010-01-28 
11:40:38 UTC (rev 26364)
@@ -1836,7 +1836,7 @@
                                        TexResult ttexr = {0, 0, 0, 0, 0, 
texres.talpha, NULL}; // temp TexResult
                                        float tco[3], texv[3], cd, ud, vd, du, 
dv, idu, idv;
                                        const int fromrgb = ((tex->type == 
TEX_IMAGE) || ((tex->flag & TEX_COLORBAND)!=0));
-                                       const float bf = 
0.04f*Tnor*mtex->norfac;
+                                       const float bf = 
0.04f*Tnor*stencilTin*mtex->norfac;
                                        // disable internal bump eval
                                        float* nvec = texres.nor;
                                        texres.nor = NULL;


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to