[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [16199] branches/soc-2008-unclezeiv/source /blender/render/intern/source/convertblender.c: fixed bug that would crash lightcuts if lamps with sampling > 1 are present (lightcuts uses single sampling anyway)
Davide Vercelli
davide.vercelli at gmail.com
Wed Aug 20 22:49:32 CEST 2008
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;
More information about the Bf-blender-cvs
mailing list