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
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2006-03-24 18:46:26 +0300
committerCampbell Barton <ideasman42@gmail.com>2006-03-24 18:46:26 +0300
commitd29503cc6d96cabe836c011645cde9920ba213b8 (patch)
treed8c2dc9c786d8259a508fea33f4a7b1a5f15344d /source/blender/python/api2_2x/Sys.c
parent7417d0748277d8649349a6ef86d44fc76a2d199f (diff)
Made blender python work in background mode without a blend file loading.
Blender.c python initialization creates a scene when in background mode and when there is no scene. Needed to skip redrawing when in background mode because it depended on screen data that wasnt there.
Diffstat (limited to 'source/blender/python/api2_2x/Sys.c')
-rw-r--r--source/blender/python/api2_2x/Sys.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/source/blender/python/api2_2x/Sys.c b/source/blender/python/api2_2x/Sys.c
index 615268504f1..bf676b31be1 100644
--- a/source/blender/python/api2_2x/Sys.c
+++ b/source/blender/python/api2_2x/Sys.c
@@ -414,9 +414,6 @@ static PyObject *M_sys_expandpath( PyObject * self, PyObject * args )
if (!PyArg_ParseTuple( args, "s", &path))
return EXPP_ReturnPyObjError( PyExc_TypeError,
"expected string argument" );
- if (!G.scene)
- return EXPP_ReturnPyObjError( PyExc_RuntimeError,
- "error, load a blend before expending the path." );
BLI_strncpy(expanded, path, FILE_MAXDIR + FILE_MAXFILE);
BLI_convertstringcode(expanded, G.sce, G.scene->r.cfra);