Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_script/space_script.c
| Show First 20 Lines • Show All 150 Lines • ▼ Show 20 Lines | static void script_header_region_init(wmWindowManager *UNUSED(wm), ARegion *region) | ||||
| ED_region_header_init(region); | ED_region_header_init(region); | ||||
| } | } | ||||
| static void script_header_region_draw(const bContext *C, ARegion *region) | static void script_header_region_draw(const bContext *C, ARegion *region) | ||||
| { | { | ||||
| ED_region_header(C, region); | ED_region_header(C, region); | ||||
| } | } | ||||
| static void script_main_region_listener(wmWindow *UNUSED(win), | static void script_main_region_listener(const wmRegionListenerParams *UNUSED(params)) | ||||
| ScrArea *UNUSED(area), | |||||
| ARegion *UNUSED(region), | |||||
| wmNotifier *UNUSED(wmn), | |||||
| const Scene *UNUSED(scene)) | |||||
| { | { | ||||
| /* context changes */ | |||||
| /* XXX - Todo, need the ScriptSpace accessible to get the python script to run. */ | /* XXX - Todo, need the ScriptSpace accessible to get the python script to run. */ | ||||
| #if 0 | #if 0 | ||||
| BPY_run_script_space_listener() | BPY_run_script_space_listener() | ||||
| #endif | #endif | ||||
| } | } | ||||
| /* only called once, from space/spacetypes.c */ | /* only called once, from space/spacetypes.c */ | ||||
| void ED_spacetype_script(void) | void ED_spacetype_script(void) | ||||
| Show All 38 Lines | |||||