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>2018-10-26 01:19:51 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-10-26 01:30:17 +0300
commit6c86e1a781162e5a62955b136833ecf78010e2bc (patch)
tree7a6d9e654513fa8e207f591b9859d6eeabc074e9 /source/blender/editors/space_api
parent35991d999052f6cb7d5c4c98c0c689e05218314c (diff)
PyAPI: draw handlers now store args in the capsule context
Was using the handlers custom-data which crashes when Blender frees the screen data before Python removes the handler.
Diffstat (limited to 'source/blender/editors/space_api')
-rw-r--r--source/blender/editors/space_api/spacetypes.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/source/blender/editors/space_api/spacetypes.c b/source/blender/editors/space_api/spacetypes.c
index 91dff98f906..3e343d5e35a 100644
--- a/source/blender/editors/space_api/spacetypes.c
+++ b/source/blender/editors/space_api/spacetypes.c
@@ -266,11 +266,6 @@ void ED_region_draw_cb_exit(ARegionType *art, void *handle)
}
}
-void *ED_region_draw_cb_customdata(void *handle)
-{
- return ((RegionDrawCB *)handle)->customdata;
-}
-
void ED_region_draw_cb_draw(const bContext *C, ARegion *ar, int type)
{
RegionDrawCB *rdc;