diff options
author | Joshua Leung <aligorith@gmail.com> | 2008-12-21 11:02:24 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2008-12-21 11:02:24 +0300 |
commit | df274a8b58a9f3f9e4a6e34e76bb2fb2e06b7e3f (patch) | |
tree | f9ab9e835aad7cdf02470ff8693b6711647e53f8 /source/blender/editors/space_api | |
parent | e2cca3320ac9e32c9f5ad51e1c6de1d049aa5b98 (diff) |
2.5 - Time operations to Animation Module
Moved time_ops.c contents to anim_ops.c, as the operators there are applicable to all other Animation Editors too. anim_ops.c will therefore contain all operators which will apply to all Animation Editors (i.e. change frame, frames/seconds display toggle, and soon Preview Range tools).
As such, added new global 'Animation' keymap like for View2D and Markers, which will ensure that these tools can be accessed in an uniform way across editors.
Note that the order that these things are added is important, as the Animation ones will often 'steal' events from the View2D and Markers ones if placed before the others. To prevent that, we'd need to be able to set boundboxes here...
Diffstat (limited to 'source/blender/editors/space_api')
-rw-r--r-- | source/blender/editors/space_api/spacetypes.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_api/spacetypes.c b/source/blender/editors/space_api/spacetypes.c index 2e958a4d6dc..e2f9ead8e59 100644 --- a/source/blender/editors/space_api/spacetypes.c +++ b/source/blender/editors/space_api/spacetypes.c @@ -39,6 +39,7 @@ #include "ED_screen.h" #include "ED_space_api.h" +#include "ED_anim_api.h" ARegionType *ED_regiontype_from_id(SpaceType *st, int regionid) @@ -81,6 +82,7 @@ void ED_spacetypes_init(void) /* register operator types for screen and all spaces */ ED_operatortypes_screen(); ui_view2d_operatortypes(); + ED_operatortypes_anim(); spacetypes = BKE_spacetypes_list(); for(type=spacetypes->first; type; type=type->next) @@ -98,6 +100,7 @@ void ED_spacetypes_keymap(wmWindowManager *wm) ED_keymap_screen(wm); UI_view2d_keymap(wm); + ED_keymap_anim(wm); spacetypes = BKE_spacetypes_list(); for(stype=spacetypes->first; stype; stype=stype->next) { |