diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-10-26 01:19:51 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-10-26 01:30:17 +0300 |
commit | 6c86e1a781162e5a62955b136833ecf78010e2bc (patch) | |
tree | 7a6d9e654513fa8e207f591b9859d6eeabc074e9 /source/blender/editors/space_api/spacetypes.c | |
parent | 35991d999052f6cb7d5c4c98c0c689e05218314c (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/spacetypes.c')
-rw-r--r-- | source/blender/editors/space_api/spacetypes.c | 5 |
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; |