PyAPI: report unreleased ID's with WITH_PYTHON_SAFETY enabled
This would have made T88033 more straightforward to track down.
This commit is contained in:
@@ -502,7 +502,10 @@ void BPY_python_start(bContext *C, int argc, const char **argv)
|
||||
}
|
||||
#endif
|
||||
|
||||
/* bpy.* and lets us import it */
|
||||
/* Run first, initializes RNA types. */
|
||||
BPY_rna_init();
|
||||
|
||||
/* Defines `bpy.*` and lets us import it. */
|
||||
BPy_init_modules(C);
|
||||
|
||||
pyrna_alloc_types();
|
||||
@@ -541,6 +544,8 @@ void BPY_python_end(void)
|
||||
/* free other python data. */
|
||||
pyrna_free_types();
|
||||
|
||||
BPY_rna_exit();
|
||||
|
||||
/* clear all python data from structs */
|
||||
|
||||
bpy_intern_string_exit();
|
||||
|
||||
Reference in New Issue
Block a user