[Bf-blender-cvs] [6feac1e] master: Cycles: Center Tile order had a slight offset to the left.
Greg Zaal
noreply at git.blender.org
Sun Oct 5 18:36:09 CEST 2014
Commit: 6feac1e940ec3f15411c259bc772703b45013c12
Author: Greg Zaal
Date: Sun Oct 5 18:35:49 2014 +0200
Branches: master
https://developer.blender.org/rB6feac1e940ec3f15411c259bc772703b45013c12
Cycles: Center Tile order had a slight offset to the left.
Signed-off-by: Thomas Dinges
===================================================================
M intern/cycles/render/tile.cpp
===================================================================
diff --git a/intern/cycles/render/tile.cpp b/intern/cycles/render/tile.cpp
index d6094a4..e37d8e5 100644
--- a/intern/cycles/render/tile.cpp
+++ b/intern/cycles/render/tile.cpp
@@ -200,8 +200,8 @@ list<Tile>::iterator TileManager::next_background_tile(int device, TileOrder til
switch (tile_order) {
case TILE_CENTER:
- distx = centx - (cur_tile.x + cur_tile.w);
- disty = centy - (cur_tile.y + cur_tile.h);
+ distx = centx - (cur_tile.x + (cur_tile.w / 2));
+ disty = centy - (cur_tile.y + (cur_tile.h / 2));
distx = (int64_t)sqrt((double)(distx * distx + disty * disty));
break;
case TILE_RIGHT_TO_LEFT:
More information about the Bf-blender-cvs
mailing list