[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [21162] branches/soc-2009-jaguarandi/ source/blender/render/intern/source/rayshade.c: *another blackdots fixed - had forgoted to enable skip-neighbour faces on ao .

André Pinto andresusanopinto at gmail.com
Fri Jun 26 04:11:10 CEST 2009


Revision: 21162
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=21162
Author:   jaguarandi
Date:     2009-06-26 04:11:08 +0200 (Fri, 26 Jun 2009)

Log Message:
-----------
*another blackdots fixed - had forgoted to enable skip-neighbour faces on ao.

Modified Paths:
--------------
    branches/soc-2009-jaguarandi/source/blender/render/intern/source/rayshade.c

Modified: branches/soc-2009-jaguarandi/source/blender/render/intern/source/rayshade.c
===================================================================
--- branches/soc-2009-jaguarandi/source/blender/render/intern/source/rayshade.c	2009-06-26 01:49:57 UTC (rev 21161)
+++ branches/soc-2009-jaguarandi/source/blender/render/intern/source/rayshade.c	2009-06-26 02:11:08 UTC (rev 21162)
@@ -1662,6 +1662,7 @@
 	
 	isec.orig.ob   = shi->obi;
 	isec.orig.face = shi->vlr;
+	isec.skip = RE_SKIP_VLR_NEIGHBOUR;
 
 	isec.hit.ob   = 0;
 	isec.hit.face = 0;
@@ -1794,6 +1795,7 @@
 	
 	isec.orig.ob   = shi->obi;
 	isec.orig.face = shi->vlr;
+	isec.skip = RE_SKIP_VLR_NEIGHBOUR;
 
 	isec.hit.ob   = 0;
 	isec.hit.face = 0;
@@ -2018,8 +2020,6 @@
 			if (lar->type == LA_LOCAL) {
 				float ru[3], rv[3], v[3], s[3];
 				
-				assert(lampvec == 0);
-				
 				/* calc tangent plane vectors */
 				v[0] = co[0] - lampco[0];
 				v[1] = co[1] - lampco[1];
@@ -2038,7 +2038,6 @@
 				VECCOPY(samp3d, s);
 			}
 			else {
-				assert(lampvec);
 				/* sampling, returns quasi-random vector in [sizex,sizey]^2 plane */
 				QMC_sampleRect(samp3d, qsa, shi->thread, samples, lar->area_size, lar->area_sizey);
 								





More information about the Bf-blender-cvs mailing list