Revision: 16199
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16199
Author:   unclezeiv
Date:     2008-08-20 22:49:32 +0200 (Wed, 20 Aug 2008)

Log Message:
-----------
fixed bug that would crash lightcuts if lamps with sampling > 1 are present 
(lightcuts uses single sampling anyway)

Modified Paths:
--------------
    
branches/soc-2008-unclezeiv/source/blender/render/intern/source/convertblender.c

Modified: 
branches/soc-2008-unclezeiv/source/blender/render/intern/source/convertblender.c
===================================================================
--- 
branches/soc-2008-unclezeiv/source/blender/render/intern/source/convertblender.c
    2008-08-20 20:10:33 UTC (rev 16198)
+++ 
branches/soc-2008-unclezeiv/source/blender/render/intern/source/convertblender.c
    2008-08-20 20:49:32 UTC (rev 16199)
@@ -3569,6 +3569,9 @@
 
        // area
        lar->ray_samp= la->ray_samp;
+       /* lightcuts uses single sampling and LA_SAMP_CONSTANT, override here 
to avoid crashes */
+       if (re->r.mode & R_LIGHTCUTS)
+               lar->ray_samp= 1;
        lar->ray_sampy= la->ray_sampy;
        lar->ray_sampz= la->ray_sampz;
        


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

Reply via email to