Changing hard codec max frame release for a define (in blendef.h with the other maximums).
Tried to change it everywhere, hopefully I didn't miss any. Also raised max frame to 30000 (maintainer of that code can safely modify it back since it is in one spot now ;) ) Needed that limit for a marketing video contract, might as well commit it.
This commit is contained in:
@@ -712,7 +712,7 @@ static PyObject *Lattice_insertKey( BPy_Lattice * self, PyObject * args )
|
||||
|
||||
//set the current frame
|
||||
if( frame > 0 ) {
|
||||
frame = EXPP_ClampInt( frame, 1, 18000 );
|
||||
frame = EXPP_ClampInt( frame, 1, MAXFRAME );
|
||||
oldfra = G.scene->r.cfra;
|
||||
G.scene->r.cfra = frame;
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
#define EXPP_NMESH_MODE_SUBSURF ME_SUBSURF
|
||||
#define EXPP_NMESH_MODE_OPTIMAL ME_OPT_EDGES
|
||||
|
||||
#define NMESH_FRAME_MAX 18000
|
||||
#define NMESH_FRAME_MAX 30000
|
||||
#define NMESH_SMOOTHRESH 30
|
||||
#define NMESH_SMOOTHRESH_MIN 1
|
||||
#define NMESH_SMOOTHRESH_MAX 80
|
||||
|
||||
@@ -57,7 +57,7 @@ static Base *EXPP_Scene_getObjectBase( Scene * scene, Object * object );
|
||||
PyObject *M_Object_Get( PyObject * self, PyObject * args ); /* from Object.c */
|
||||
|
||||
//----------------------------------- Python BPy_Scene defaults------------
|
||||
#define EXPP_SCENE_FRAME_MAX 18000
|
||||
#define EXPP_SCENE_FRAME_MAX 30000
|
||||
#define EXPP_SCENE_RENDER_WINRESOLUTION_MIN 4
|
||||
#define EXPP_SCENE_RENDER_WINRESOLUTION_MAX 10000
|
||||
//-----------------------Python API function prototypes for the Scene module--
|
||||
|
||||
@@ -1385,21 +1385,21 @@ PyObject *RenderData_GaussFilterSize( BPy_RenderData * self, PyObject * args )
|
||||
PyObject *RenderData_StartFrame( BPy_RenderData * self, PyObject * args )
|
||||
{
|
||||
return M_Render_GetSetAttributeShort( args, &self->renderContext->sfra,
|
||||
1, 18000 );
|
||||
1, MAXFRAME );
|
||||
}
|
||||
|
||||
//------------------------------------RenderData.CurrentFrame() ---------
|
||||
PyObject *RenderData_CurrentFrame( BPy_RenderData * self, PyObject * args )
|
||||
{
|
||||
return M_Render_GetSetAttributeShort( args, &self->renderContext->cfra,
|
||||
1, 18000 );
|
||||
1, MAXFRAME );
|
||||
}
|
||||
|
||||
//------------------------------------RenderData.EndFrame() -------------
|
||||
PyObject *RenderData_EndFrame( BPy_RenderData * self, PyObject * args )
|
||||
{
|
||||
return M_Render_GetSetAttributeShort( args, &self->renderContext->efra,
|
||||
1, 18000 );
|
||||
1, MAXFRAME );
|
||||
}
|
||||
|
||||
//------------------------------------RenderData.ImageSizeX() ----------
|
||||
|
||||
Reference in New Issue
Block a user