[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [33109] trunk/blender/source/blender/ render/intern/source/convertblender.c: Bugfix #23677

Ton Roosendaal ton at blender.org
Tue Nov 16 18:10:39 CET 2010


Revision: 33109
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=33109
Author:   ton
Date:     2010-11-16 18:10:39 +0100 (Tue, 16 Nov 2010)

Log Message:
-----------
Bugfix #23677

Very old bug: Material/Render: the "filter" option for transparent
absorption also works for alpha==0, but in that case another part
of render code just didn't add the faces in render list.

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

Modified: trunk/blender/source/blender/render/intern/source/convertblender.c
===================================================================
--- trunk/blender/source/blender/render/intern/source/convertblender.c	2010-11-16 16:56:21 UTC (rev 33108)
+++ trunk/blender/source/blender/render/intern/source/convertblender.c	2010-11-16 17:10:39 UTC (rev 33109)
@@ -3308,7 +3308,7 @@
 				
 				/* test for 100% transparant */
 				ok= 1;
-				if(ma->alpha==0.0 && ma->spectra==0.0) {
+				if(ma->alpha==0.0f && ma->spectra==0.0f && ma->filter==0.0f) {
 					ok= 0;
 					/* texture on transparency? */
 					for(a=0; a<MAX_MTEX; a++) {





More information about the Bf-blender-cvs mailing list