Blender Git Loki
Git Commits -> Revision 847eea6
Revision 847eea6 by Campbell Barton (temp-gpencil-bezier-stroke-type) April 13, 2021, 09:29 (GMT) |
PyAPI: support retrieving the exception when running a string - Optionally get the error as a single line. - Support access the error as an allocated string. - PyC_ExceptionBuffer_Simple was always printing to the `stdout` while PyC_ExceptionBuffer didn't, now either print to the output. Without this, callers are unable to do anything with the error string. |
Commit Details:
Full Hash: 847eea677f1b43cb4f5cdf4b3a4b38b4c5b30613
Parent Commit: fc0a59f
Committed By: Falk David
Lines Changed: +106, -44
8 Modified Paths:
/source/blender/editors/include/ED_numinput.h (+3, -2) (Diff)
/source/blender/editors/interface/interface.c (+14, -2) (Diff)
/source/blender/editors/interface/interface_context_menu.c (+1, -1) (Diff)
/source/blender/editors/interface/interface_region_tooltip.c (+5, -5) (Diff)
/source/blender/editors/util/numinput.c (+20, -5) (Diff)
/source/blender/python/BPY_extern_run.h (+20, -4) (Diff)
/source/blender/python/generic/py_capi_utils.c (+0, -1) (Diff)
/source/blender/python/intern/bpy_interface_run.c (+43, -24) (Diff)
/source/blender/editors/interface/interface.c (+14, -2) (Diff)
/source/blender/editors/interface/interface_context_menu.c (+1, -1) (Diff)
/source/blender/editors/interface/interface_region_tooltip.c (+5, -5) (Diff)
/source/blender/editors/util/numinput.c (+20, -5) (Diff)
/source/blender/python/BPY_extern_run.h (+20, -4) (Diff)
/source/blender/python/generic/py_capi_utils.c (+0, -1) (Diff)
/source/blender/python/intern/bpy_interface_run.c (+43, -24) (Diff)