[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [57505] trunk/blender/source/blender/ freestyle/intern/application/AppCanvas.cpp: Fix for the DensityF0D function not working as expected when the Z pass was not available .

Tamito Kajiyama rd6t-kjym at asahi-net.or.jp
Sun Jun 16 17:08:25 CEST 2013


Revision: 57505
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=57505
Author:   kjym3
Date:     2013-06-16 15:08:25 +0000 (Sun, 16 Jun 2013)
Log Message:
-----------
Fix for the DensityF0D function not working as expected when the Z pass was not available.

Modified Paths:
--------------
    trunk/blender/source/blender/freestyle/intern/application/AppCanvas.cpp

Modified: trunk/blender/source/blender/freestyle/intern/application/AppCanvas.cpp
===================================================================
--- trunk/blender/source/blender/freestyle/intern/application/AppCanvas.cpp	2013-06-16 14:54:14 UTC (rev 57504)
+++ trunk/blender/source/blender/freestyle/intern/application/AppCanvas.cpp	2013-06-16 15:08:25 UTC (rev 57505)
@@ -136,8 +136,8 @@
 		int ymin = border().getMin().y();
 		int xmax = border().getMax().x();
 		int ymax = border().getMax().y();
-		int rectx = _pass_z.width;
-		int recty = _pass_z.height;
+		int rectx = _pass_diffuse.width;
+		int recty = _pass_diffuse.height;
 		float xfac = ((float)rectx) / ((float)(xmax - xmin));
 		float yfac = ((float)recty) / ((float)(ymax - ymin));
 #if 0




More information about the Bf-blender-cvs mailing list