Changeset View
Changeset View
Standalone View
Standalone View
source/blender/python/intern/bpy_rna_callback.c
| Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | |||||
| /* Use this to stop other capsules from being mis-used. */ | /* Use this to stop other capsules from being mis-used. */ | ||||
| static const char *rna_capsual_id = "RNA_HANDLE"; | static const char *rna_capsual_id = "RNA_HANDLE"; | ||||
| static const char *rna_capsual_id_invalid = "RNA_HANDLE_REMOVED"; | static const char *rna_capsual_id_invalid = "RNA_HANDLE_REMOVED"; | ||||
| static const EnumPropertyItem region_draw_mode_items[] = { | static const EnumPropertyItem region_draw_mode_items[] = { | ||||
| {REGION_DRAW_POST_PIXEL, "POST_PIXEL", 0, "Post Pixel", ""}, | {REGION_DRAW_POST_PIXEL, "POST_PIXEL", 0, "Post Pixel", ""}, | ||||
| {REGION_DRAW_POST_VIEW, "POST_VIEW", 0, "Post View", ""}, | {REGION_DRAW_POST_VIEW, "POST_VIEW", 0, "Post View", ""}, | ||||
| {REGION_DRAW_PRE_VIEW, "PRE_VIEW", 0, "Pre View", ""}, | {REGION_DRAW_PRE_VIEW, "PRE_VIEW", 0, "Pre View", ""}, | ||||
| {REGION_DRAW_BACKDROP, "BACKDROP", 0, "Backdrop", ""}, | |||||
| {0, NULL, 0, NULL, NULL}, | {0, NULL, 0, NULL, NULL}, | ||||
| }; | }; | ||||
| static void cb_region_draw(const bContext *C, ARegion *UNUSED(ar), void *customdata) | static void cb_region_draw(const bContext *C, ARegion *UNUSED(ar), void *customdata) | ||||
| { | { | ||||
| PyObject *cb_func, *cb_args, *result; | PyObject *cb_func, *cb_args, *result; | ||||
| PyGILState_STATE gilstate; | PyGILState_STATE gilstate; | ||||
| ▲ Show 20 Lines • Show All 421 Lines • Show Last 20 Lines | |||||