Blender Git Commit Log

Git Commits -> Revision ffe7bde

Revision ffe7bde by Campbell Barton (master)
February 1, 2011, 12:37 (GMT)
correct fix for bug #23871, __main__ module was being overwritten in nested functions, so on returning from calling operators the __main__ module could be cleared and imported modules turn into None

calling
bpy.ops.wm.read_factory_settings()
... would clear a scripts namespace if running directly, not in a module.


Fix by backing up and restoring the __main__ module.

Also found BKE_reportf wasnt printing all reports in background mode as BKE_report() was doing.

Commit Details:

Full Hash: ffe7bde02c5725993e9c1986bbc8a83174adbbb8
SVN Revision: 34603
Parent Commit: 86f3ba2
Lines Changed: +37, -7

4 Modified Paths:

/source/blender/blenkernel/intern/report.c (+1, -1) (Diff)
/source/blender/python/generic/py_capi_utils.c (+18, -0) (Diff)
/source/blender/python/generic/py_capi_utils.h (+3, -0) (Diff)
/source/blender/python/intern/bpy_interface.c (+15, -6) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021