Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-03-01 12:02:54 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-03-01 12:02:54 +0300
commitc9ee017fb52bf68df87fa498555f1df735b46131 (patch)
tree7e83b9dc127ea9d0c7eff3e414a873e0073a5a45 /source/blender/python/BPY_extern.h
parentc8de6195c84caaa9abeb968047512fe8795d16c1 (diff)
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.
Diffstat (limited to 'source/blender/python/BPY_extern.h')
-rw-r--r--source/blender/python/BPY_extern.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/python/BPY_extern.h b/source/blender/python/BPY_extern.h
index f4899849702..7901957e5e4 100644
--- a/source/blender/python/BPY_extern.h
+++ b/source/blender/python/BPY_extern.h
@@ -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