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>2010-02-27 16:27:06 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-02-27 16:27:06 +0300
commitb6acf0bb48e8d8e606a7b4b9c0d96337091c0bd4 (patch)
treee4c84496a8d9358c59007eb6efeef5a1e640c154 /source/blender/editors/space_api
parent34857189bccb14f94076bce9728b5abbe92113ad (diff)
python support for defining region drawing callbacks, while not directly related to operators, this means python can now make operators that draw in the 3D viewport interactively.
nicer then 2.4x space handelers because you can register draw handelers to draw pre/post 3d space or in pixel space.
Diffstat (limited to 'source/blender/editors/space_api')
-rw-r--r--source/blender/editors/space_api/spacetypes.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/space_api/spacetypes.c b/source/blender/editors/space_api/spacetypes.c
index 9bfe3213587..a3fe29536a3 100644
--- a/source/blender/editors/space_api/spacetypes.c
+++ b/source/blender/editors/space_api/spacetypes.c
@@ -204,6 +204,11 @@ 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;