diff options
author | Sergey Sharybin <sergey@blender.org> | 2021-10-07 17:54:26 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey@blender.org> | 2021-10-08 16:28:53 +0300 |
commit | 596446dbc6beeed4d371242e21cd02ef85c4426b (patch) | |
tree | dd020b5551c67f13cb45d9197a0ac81ed2297c14 /source/blender/render/intern | |
parent | 7afde7cd22822993fa1a6f709ff0676fc71a0aaf (diff) |
Fix wrong Cycles tile highlight with region render
In previous Blender version the tile highlight was stored in the
full frame (un-cropped) space. This was changed with the Cycles X
development and now the tiles and render result are always measured
relative to the cropped region.
Differential Revision: https://developer.blender.org/D12779
Diffstat (limited to 'source/blender/render/intern')
-rw-r--r-- | source/blender/render/intern/engine.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/render/intern/engine.c b/source/blender/render/intern/engine.c index 790c46dad0f..5f8679b572d 100644 --- a/source/blender/render/intern/engine.c +++ b/source/blender/render/intern/engine.c @@ -281,11 +281,10 @@ static void render_result_to_bake(RenderEngine *engine, RenderResult *rr) /* Render Results */ -static HighlightedTile highlighted_tile_from_result_get(Render *re, RenderResult *result) +static HighlightedTile highlighted_tile_from_result_get(Render *UNUSED(re), RenderResult *result) { HighlightedTile tile; tile.rect = result->tilerect; - BLI_rcti_translate(&tile.rect, re->disprect.xmin, re->disprect.ymin); return tile; } |