[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [49525] branches/soc-2011-tomato/intern/ cycles/render/tile.cpp: Tomato Cycles: fix wrong center coordinate when using multi-device configurations

Sergey Sharybin sergey.vfx at gmail.com
Fri Aug 3 12:42:21 CEST 2012


Revision: 49525
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=49525
Author:   nazgul
Date:     2012-08-03 10:42:21 +0000 (Fri, 03 Aug 2012)
Log Message:
-----------
Tomato Cycles: fix wrong center coordinate when using multi-device configurations

Modified Paths:
--------------
    branches/soc-2011-tomato/intern/cycles/render/tile.cpp

Modified: branches/soc-2011-tomato/intern/cycles/render/tile.cpp
===================================================================
--- branches/soc-2011-tomato/intern/cycles/render/tile.cpp	2012-08-03 10:19:13 UTC (rev 49524)
+++ branches/soc-2011-tomato/intern/cycles/render/tile.cpp	2012-08-03 10:42:21 UTC (rev 49525)
@@ -125,7 +125,7 @@
 	int device_y = (image_h / num) * device;
 	int device_h = (device == num - 1) ? image_h - device * (image_h / num) : image_h / num;
 
-	int64_t centx = image_w / 2, centy = device_h / 2, tot = 1;
+	int64_t centx = image_w / 2, centy = device_y + device_h / 2, tot = 1;
 	int64_t mindist = (int64_t) image_w * (int64_t) device_h;
 
 	/* find center of rendering tiles, image center counts for 1 too */




More information about the Bf-blender-cvs mailing list