diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-01-05 12:54:39 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-01-05 12:54:39 +0300 |
commit | df20a12728626372de8a5eb127e57cb2cca40649 (patch) | |
tree | 1db0a794e8bd2bcdc899857715859ede024ca564 /source/blender/editors/include/ED_anim_api.h | |
parent | 7de52578c044f20b166045eaf5e925c6714f6598 (diff) |
2.5 - Animation Fixes + More Porting work in Action Editor
* Added crash fixes for loading old files with Actions/Armatures in them. Was caused by usage of some old globals still and the functions in question not performing NULL checks on the validity of the data they're given.
* Added back reorganise action channels tools (shift/ctrl-shif pageup/down) for Action Editor. These are only available in 'Action Mode' only.
* Tidied up Action Editor/Dopesheet tools code - removed various unused things, and also, added an API call in anim_deps.c to send the correct notifiers, since I anticipate that they're likely to require a few context checks which would be better to centralise than copy+paste everywhere.
Note to Ton: could you have a look at this notifier stuff here? I'm not sure which ones I should be sending...
* Also added a few assorted comments in various places
Diffstat (limited to 'source/blender/editors/include/ED_anim_api.h')
-rw-r--r-- | source/blender/editors/include/ED_anim_api.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/source/blender/editors/include/ED_anim_api.h b/source/blender/editors/include/ED_anim_api.h index 410bd77e483..863446fe59f 100644 --- a/source/blender/editors/include/ED_anim_api.h +++ b/source/blender/editors/include/ED_anim_api.h @@ -327,7 +327,19 @@ void ED_update_for_newframe(const struct bContext *C, int mute); /* pose <-> action syncing */ void ANIM_action_to_pose_sync(struct Object *ob); -void ANIM_pose_to_action_sync(struct Object *ob); +void ANIM_pose_to_action_sync(struct Object *ob, struct ScrArea *sa); + + +/* what types of animation data was changed (for sending notifiers from animation tools) */ +enum { + ANIM_CHANGED_BOTH= 0, + ANIM_CHANGED_KEYFRAMES_VALUES, + ANIM_CHANGED_KEYFRAMES_SELECT, + ANIM_CHANGED_CHANNELS +} eAnimData_Changed; + +/* Send notifiers on behalf of animation editing tools, based on various context info */ +void ANIM_animdata_send_notifiers(struct bContext *C, bAnimContext *ac, short data_changed); /* ************************************************* */ /* OPERATORS */ |