Blender Git Loki

Git Commits -> Revision a9dea9c

Revision a9dea9c by Campbell Barton (master)
January 7, 2021, 03:41 (GMT)
PyAPI: don't raise & clear exceptions when setting context members

BPY_context_dict_clear_members_array used PyDict_DelItemString
which raised & cleared the exception when the key didn't exist.

Even though setting/clearing the exception is supported,
it's worth avoiding where possible as it adds some overhead as well as
overwriting the previous error which can free PyObject's which are
unrelated to the code being executed.

Possible fix for T82552, crashing on Windows when setting the exception.

Commit Details:

Full Hash: a9dea9cfaa756396153223f1eb2d8dc3161ded01
Parent Commit: f35a38f
Lines Changed: +7, -3

1 Modified Path:

/source/blender/python/intern/bpy_interface.c (+7, -3) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021