Tomato Cycles: fix for wrong resolution used for rendering Render Layer node
authorSergey Sharybin <sergey.vfx@gmail.com>
Fri, 27 Jul 2012 12:16:23 +0000 (12:16 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Fri, 27 Jul 2012 12:16:23 +0000 (12:16 +0000)
commit5e90606b174a43f1521414722fe6bb5a9f40d128
treedc53d831dd944c5543d3361c68ec4efc3f344b76
parenta63ffa9ae3573592d56df25d6cab9451eb9d276b
Tomato Cycles: fix for wrong resolution used for rendering Render Layer node

Issue was caused by Cycles using render options from rendering scene, not
from active scene.

For now solved by passing render resolution inside RenderEngine structure.
This probably could be solved in more general way, like adding bindings

for RenderEngine->Render, which would avoid passing options like
is_animation, came_override and so via RenderEngine. Would think about
this a bit more and probably would do that.

The same issue happens in trunk as well, but not consider such a change
trunk-ready, would want to make more tests and probably clean the code
a little bit before commiting this into trunk.
intern/cycles/blender/blender_session.cpp
source/blender/makesrna/intern/rna_render.c
source/blender/render/extern/include/RE_engine.h
source/blender/render/intern/source/external_engine.c