diff options
author | Joseph Eagar <joeedh@gmail.com> | 2010-10-27 06:22:55 +0400 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2010-10-27 06:22:55 +0400 |
commit | 1d68058f7746af228ed71f341bdcbe3c20041936 (patch) | |
tree | e5984f3d7ac556acc1fc98bab8aa05389a43ac9d /source/blender/editors/space_view3d/view3d_toolbar.c | |
parent | ef7904f2c4f05dd146d5bc3c19629f0049ab7f97 (diff) |
ad-hoc test sys that can handle paint stuff. temporary.
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_toolbar.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_toolbar.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/view3d_toolbar.c b/source/blender/editors/space_view3d/view3d_toolbar.c index e47a3af19f1..c07d7d88944 100644 --- a/source/blender/editors/space_view3d/view3d_toolbar.c +++ b/source/blender/editors/space_view3d/view3d_toolbar.c @@ -303,3 +303,27 @@ void VIEW3D_OT_toolshelf(wmOperatorType *ot) /* flags */ ot->flag= 0; } + + +#ifdef EVENT_RECORDER +static int view3d_evtrec(bContext *C, wmOperator *op) +{ + + CTX_rec_events_set(C, !CTX_rec_events(C)); + + return OPERATOR_FINISHED; +} + +void VIEW3D_OT_evtrec(wmOperatorType *ot) +{ + ot->name= "Toggle Event Recorder"; + ot->description= "Toggles event recorder"; + ot->idname= "VIEW3D_OT_evtrec"; + + ot->exec= view3d_evtrec; + ot->poll= ED_operator_view3d_active; + + /* flags */ + ot->flag= 0; +} +#endif |