Revision: 24706
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24706
Author:   blendix
Date:     2009-11-20 16:07:16 +0100 (Fri, 20 Nov 2009)

Log Message:
-----------
Fix for unitialized variable and resulting render artifacts
when setting project x/y/z to none with a procedural texture.

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 2009-11-20 
15:01:09 UTC (rev 24705)
+++ trunk/blender/source/blender/render/intern/source/texture.c 2009-11-20 
15:07:16 UTC (rev 24706)
@@ -1611,17 +1611,17 @@
                                dxt[0] = mtex->size[0]*dx[mtex->projx - 1];
                                dyt[0] = mtex->size[0]*dy[mtex->projx - 1];
                        }
-                       else dxt[0] = 0.f;
+                       else dxt[0] = dyt[0] = 0.f;
                        if (mtex->projy) {
                                dxt[1] = mtex->size[1]*dx[mtex->projy - 1];
                                dyt[1] = mtex->size[1]*dy[mtex->projy - 1];
                        }
-                       else dxt[1] = 0.f;
+                       else dxt[1] = dyt[1] = 0.f;
                        if (mtex->projz) {
                                dxt[2] = mtex->size[2]*dx[mtex->projz - 1];
                                dyt[2] = mtex->size[2]*dy[mtex->projz - 1];
                        }
-                       else dxt[2]= 0.f;
+                       else dxt[2]= dyt[2] = 0.f;
                }
        }
 }


_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to