2.5 - Animation Fixes + More Porting work in Action Editor
authorJoshua Leung <aligorith@gmail.com>
Mon, 5 Jan 2009 09:54:39 +0000 (09:54 +0000)
committerJoshua Leung <aligorith@gmail.com>
Mon, 5 Jan 2009 09:54:39 +0000 (09:54 +0000)
commitdf20a12728626372de8a5eb127e57cb2cca40649
tree1db0a794e8bd2bcdc899857715859ede024ca564
parent7de52578c044f20b166045eaf5e925c6714f6598
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
12 files changed:
source/blender/blenkernel/intern/action.c
source/blender/blenkernel/intern/armature.c
source/blender/blenkernel/intern/blender.c
source/blender/blenkernel/intern/ipo.c
source/blender/editors/animation/anim_channels.c
source/blender/editors/animation/anim_deps.c
source/blender/editors/animation/keyframing.c
source/blender/editors/include/ED_anim_api.h
source/blender/editors/space_action/action_edit.c
source/blender/editors/space_action/action_select.c
source/blender/editors/space_action/space_action.c
source/blender/makesrna/intern/rna_constraint.c