Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2006-10-13 15:56:08 +0400
committerCampbell Barton <ideasman42@gmail.com>2006-10-13 15:56:08 +0400
commitc8b06bba9c7ca9a537ac0e02f0466d7da64c60fe (patch)
tree4c30c426d8ace69cc7c0a0ee3b05dfa65e72ec0e /source
parentffed7d3566c00768458fa6678f0d8298c0d4aa2c (diff)
mesh/animation exporters didnt work when there were no 3d views open, because the Blender.Set('curframe', i) called a update command that resulted in no viewable layers updating.
Made Blender.Set('curframe', i) do a scene_update_for_newframe(G.scene, (1<<20) - 1); removed 2 unused constants from Scene.c
Diffstat (limited to 'source')
-rw-r--r--source/blender/python/api2_2x/Blender.c4
-rw-r--r--source/blender/python/api2_2x/Scene.c5
2 files changed, 3 insertions, 6 deletions
diff --git a/source/blender/python/api2_2x/Blender.c b/source/blender/python/api2_2x/Blender.c
index 8b013068e13..41c41e787bb 100644
--- a/source/blender/python/api2_2x/Blender.c
+++ b/source/blender/python/api2_2x/Blender.c
@@ -245,7 +245,9 @@ static PyObject *Blender_Set( PyObject * self, PyObject * args )
if( !PyArg_Parse( arg, "i", &framenum ) )
return ( NULL ); /* TODO: Do we need to generate a nice error message here? */
G.scene->r.cfra = (short)framenum;
- update_for_newframe( );
+ /* update all objects, so python scripts can export all objects in a scene
+ without worrying about the view layers */
+ scene_update_for_newframe(G.scene, (1<<20) - 1);
} else if (StringEqual( name , "uscriptsdir" ) ) {
if ( !PyArg_Parse( arg , "s" , &dir ))
diff --git a/source/blender/python/api2_2x/Scene.c b/source/blender/python/api2_2x/Scene.c
index 8296fb5d0d4..effad817b34 100644
--- a/source/blender/python/api2_2x/Scene.c
+++ b/source/blender/python/api2_2x/Scene.c
@@ -76,11 +76,6 @@ struct View3D;
PyObject *M_Object_Get( PyObject * self, PyObject * args ); /* from Object.c */
-/*----------------------------------- Python BPy_Scene defaults------------*/
-#define EXPP_SCENE_FRAME_MAX 30000
-#define EXPP_SCENE_RENDER_WINRESOLUTION_MIN 4
-#define EXPP_SCENE_RENDER_WINRESOLUTION_MAX 10000
-
/* checks for the scene being removed */
#define SCENE_DEL_CHECK_PY(bpy_scene) if (!(bpy_scene->scene)) return ( EXPP_ReturnPyObjError( PyExc_RuntimeError, "Scene has been removed" ) )
#define SCENE_DEL_CHECK_INT(bpy_scene) if (!(bpy_scene->scene)) return ( EXPP_ReturnIntError( PyExc_RuntimeError, "Scene has been removed" ) )