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:
2021-08-11 17:29:26 +10:00
parent cbc671947a
commit f3e26c847b
4 changed files with 38 additions and 26 deletions

View File

@@ -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();