From bc263b1e84cd2a2599139bced0a477369c75dece Mon Sep 17 00:00:00 2001 From: Tom Musgrove Date: Wed, 31 May 2006 22:56:22 +0000 Subject: [PATCH] ==render by parts== made xparts and yparts consistent in the different places it can be set now python and the buttons are max 64 (was 512 in some python locations) and xparts is max 512 (was max 64 in some python locations), also made the minimum xparts and yparts 1 again. Ed Halley suggests that we should up the max xparts to 1024 (instead of the current 512) for 'smoother panoramas' --- source/blender/python/api2_2x/sceneRender.c | 8 ++++---- source/blender/src/buttons_scene.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/source/blender/python/api2_2x/sceneRender.c b/source/blender/python/api2_2x/sceneRender.c index cc3497ffc79..8387b2a8d08 100644 --- a/source/blender/python/api2_2x/sceneRender.c +++ b/source/blender/python/api2_2x/sceneRender.c @@ -658,7 +658,7 @@ PyObject *RenderData_PartsX( BPy_RenderData * self, PyObject * args ) { return M_Render_GetSetAttributeShort( args, &self->renderContext->xparts, 1, - 64 ); + 512 ); } PyObject *RenderData_PartsY( BPy_RenderData * self, PyObject * args ) @@ -1566,14 +1566,14 @@ static int RenderData_setIValueAttrClamp( BPy_RenderData *self, PyObject *value, switch( (int)type ) { case EXPP_RENDER_ATTR_XPARTS: - min = 2; + min = 1; max = 512; size = 'h'; param = &self->renderContext->xparts; break; case EXPP_RENDER_ATTR_YPARTS: - min = 2; - max = 512; + min = 1; + max = 64; size = 'h'; param = &self->renderContext->yparts; break; diff --git a/source/blender/src/buttons_scene.c b/source/blender/src/buttons_scene.c index b557866b111..38d0ae88823 100644 --- a/source/blender/src/buttons_scene.c +++ b/source/blender/src/buttons_scene.c @@ -1250,8 +1250,8 @@ static void render_panel_render(void) uiBlockEndAlign(block); uiBlockBeginAlign(block); - uiDefButS(block, NUM,B_DIFF,"Xparts:", 369,46,95,29,&G.scene->r.xparts,2.0, 512.0, 0, 0, "Sets the number of horizontal parts to render image in (For panorama sets number of camera slices)"); - uiDefButS(block, NUM,B_DIFF,"Yparts:", 465,46,95,29,&G.scene->r.yparts,2.0, 64.0, 0, 0, "Sets the number of vertical parts to render image in"); + uiDefButS(block, NUM,B_DIFF,"Xparts:", 369,46,95,29,&G.scene->r.xparts,1.0, 512.0, 0, 0, "Sets the number of horizontal parts to render image in (For panorama sets number of camera slices)"); + uiDefButS(block, NUM,B_DIFF,"Yparts:", 465,46,95,29,&G.scene->r.yparts,1.0, 64.0, 0, 0, "Sets the number of vertical parts to render image in"); uiBlockEndAlign(block); uiBlockBeginAlign(block);