Fix for [#34747] Rendering invisible tiles

* reset_session() was not taking render percentage into account in case persistent_data was enabled.
* also deprecate old "maximsize" DNA variable.
This commit is contained in:
Thomas Dinges
2013-03-24 10:52:20 +00:00
parent 0bc791a34f
commit c4ae6f2c36
2 changed files with 5 additions and 3 deletions

View File

@@ -126,8 +126,8 @@ void BlenderSession::reset_session(BL::BlendData b_data_, BL::Scene b_scene_)
SceneParams scene_params = BlenderSync::get_scene_params(b_scene, background);
SessionParams session_params = BlenderSync::get_session_params(b_engine, b_userpref, b_scene, background);
width = b_render.resolution_x();
height = b_render.resolution_y();
width = (int)(b_render.resolution_x()*b_render.resolution_percentage()/100);
height = (int)(b_render.resolution_y()*b_render.resolution_percentage()/100);
if(scene->params.modified(scene_params) ||
session->params.modified(session_params) ||

View File

@@ -388,7 +388,9 @@ typedef struct RenderData {
short filtertype; /* filter is box, tent, gauss, mitch, etc */
short size, maximsize; /* size in %, max in Kb */
short size; /* size in % */
short maximsize DNA_DEPRECATED; /* max in Kb */
short pad6;