Revision: 28818 http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=28818 Author: campbellbarton Date: 2010-05-18 10:10:05 +0200 (Tue, 18 May 2010)
Log Message: ----------- fix for crash baking in background mode. Modified Paths: -------------- trunk/blender/source/blender/editors/physics/physics_pointcache.c Modified: trunk/blender/source/blender/editors/physics/physics_pointcache.c =================================================================== --- trunk/blender/source/blender/editors/physics/physics_pointcache.c 2010-05-18 07:59:40 UTC (rev 28817) +++ trunk/blender/source/blender/editors/physics/physics_pointcache.c 2010-05-18 08:10:05 UTC (rev 28818) @@ -89,7 +89,7 @@ static int ptcache_bake_all_exec(bContext *C, wmOperator *op) { Scene *scene= CTX_data_scene(C); - wmWindow *win = CTX_wm_window(C); + wmWindow *win = G.background ? NULL : CTX_wm_window(C); PTCacheBaker baker; @@ -171,7 +171,7 @@ static int ptcache_bake_exec(bContext *C, wmOperator *op) { Scene *scene = CTX_data_scene(C); - wmWindow *win = CTX_wm_window(C); + wmWindow *win = G.background ? NULL : CTX_wm_window(C); PointerRNA ptr= CTX_data_pointer_get_type(C, "point_cache", &RNA_PointCache); Object *ob= ptr.id.data; PointCache *cache= ptr.data; _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org http://lists.blender.org/mailman/listinfo/bf-blender-cvs