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 19:04:55 +0300
committerCampbell Barton <ideasman42@gmail.com>2006-03-24 19:04:55 +0300
commit21c9ee54cadd76643bbf9dcaf47e97c2a30a92cb (patch)
tree95970eaadbb4e7d226e99abc1246de3f6ea0a7b2 /source/blender/python/api2_2x/Blender.c
parentd29503cc6d96cabe836c011645cde9920ba213b8 (diff)
blender -P xxx -b crashed sometimes, still will crash in some cases if the python functions access screen data. but at least Blender.sys.expandpath wont segfault anymore.
Diffstat (limited to 'source/blender/python/api2_2x/Blender.c')
-rw-r--r--source/blender/python/api2_2x/Blender.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Blender.c b/source/blender/python/api2_2x/Blender.c
index 46cb3381e38..d67d05eaea0 100644
--- a/source/blender/python/api2_2x/Blender.c
+++ b/source/blender/python/api2_2x/Blender.c
@@ -817,7 +817,8 @@ void M_Blender_Init(void)
G.scene is NULL */
if(G.background && G.main->scene.first==0) {
Scene *sce= add_scene("1");
- set_scene(sce);
+ //set_scene(sce); /* causes a crash */
+ G.scene= sce;
}
module = Py_InitModule3("Blender", Blender_methods,