NLA SoC: Big Commit - Restored NLA-Mapping Corrections
authorJoshua Leung <aligorith@gmail.com>
Tue, 23 Jun 2009 13:25:31 +0000 (13:25 +0000)
committerJoshua Leung <aligorith@gmail.com>
Tue, 23 Jun 2009 13:25:31 +0000 (13:25 +0000)
commitb4acd77526f32faab0c3d86436eef56096985c3d
tree9b0212ceb39f1299b5e49508ed40bffb1bbf5318
parentaa267976b86f90423204e11a30eec4e0def0f296
NLA SoC: Big Commit - Restored NLA-Mapping Corrections

In TweakMode, the keyframes of the Active Action are now shown (and can be edited) in NLA-mapped time, with appropriate corrections applied when editing. This works in the DopeSheet and Graph Editors :)

To do this, got rid of the old wrappers/API-methods, replacing them with new-style ones. A few methods previously (in this branch) used only for evaluation are now used for this purpose too. As the same code is used for editing + evaluation, this should now be much better to work with.

I've only done a few brief tests now, but I think I might've muddled the invert-flags on one or two cases which I'll need to check out tomorrow. So, beware that there may be some weird and critical bugs for the next few days here...

Also, added proper license headers to new NLA files.

TODO:
- testing + bugfixing due to this commit
- show range of keyframes in NLA Editor active-action line
22 files changed:
source/blender/blenkernel/BKE_action.h
source/blender/blenkernel/BKE_nla.h
source/blender/blenkernel/intern/action.c
source/blender/blenkernel/intern/anim_sys.c
source/blender/blenkernel/intern/fcurve.c
source/blender/blenkernel/intern/nla.c
source/blender/blenkernel/nla_private.h [new file with mode: 0644]
source/blender/blenloader/intern/readfile.c
source/blender/editors/animation/anim_draw.c
source/blender/editors/animation/keyframes_draw.c
source/blender/editors/include/ED_anim_api.h
source/blender/editors/include/ED_keyframes_draw.h
source/blender/editors/space_action/action_draw.c
source/blender/editors/space_action/action_edit.c
source/blender/editors/space_action/action_select.c
source/blender/editors/space_graph/graph_draw.c
source/blender/editors/space_graph/graph_edit.c
source/blender/editors/space_graph/graph_select.c
source/blender/editors/transform/transform.c
source/blender/editors/transform/transform_conversions.c
source/blender/editors/transform/transform_generics.c
source/blender/makesdna/DNA_anim_types.h