Py/RNA API test code to prevent crashing blender when python references freed ID's.

This uses pythons GC so its no overhead during runtime but makes removing ID's slower.

Commented definition 'USE_PYRNA_INVALIDATE_GC' for now, so no functional change.
This commit is contained in:
2011-03-01 09:02:54 +00:00
parent c8de6195c8
commit c9ee017fb5
4 changed files with 57 additions and 7 deletions

View File

@@ -93,6 +93,8 @@ void BPY_DECREF(void *pyob_ptr); /* Py_DECREF() */
int BPY_context_member_get(struct bContext *C, const char *member, struct bContextDataResult *result);
void BPY_context_set(struct bContext *C);
void BPY_id_release(struct ID *id);
#ifdef __cplusplus
} /* extern "C" */
#endif