2.5 - Keyframing Bugfixes + Code Cleanups
authorJoshua Leung <aligorith@gmail.com>
Fri, 4 Sep 2009 04:27:06 +0000 (04:27 +0000)
committerJoshua Leung <aligorith@gmail.com>
Fri, 4 Sep 2009 04:27:06 +0000 (04:27 +0000)
commita819ef1bf2222b2e1132c0a3d9b6b133c8263348
tree0302e8fef8f5db846429df8b07c56f2fdd50d738
parentd577e0d986651ee28c6c1031df7db966430f218f
2.5 - Keyframing Bugfixes + Code Cleanups

* DopeSheet + Graph Editor - 'Sample Keyframes' option now tags newly created keyframes as being breakdowns. Also moved reduced the code duplication here by moving the core code for this to the animation module.

* Keyframing (Standard/Auto) - Added proper 'replace' option
Keyframes can now be rekeyed non-destructively when the INSERTKEY_REPLACE flag is provided to the keyframing API functions, since this option will make sure that only the values of the handles get altered.

For the Auto-Keyframing 'Replace/Edit Keys' option, this means that it truly works as it describes now, since it will now only replace the values of the keyframes on the current frame, and won't create new keyframes in the process or destroy the tangents already created for those keys.

For things like the sliders in animation editors, keyframes changing the value won't destroy existing tangents.
12 files changed:
source/blender/editors/animation/anim_channels_defines.c
source/blender/editors/animation/keyframes_general.c
source/blender/editors/animation/keyframing.c
source/blender/editors/animation/keyingsets.c
source/blender/editors/include/ED_keyframes_draw.h
source/blender/editors/include/ED_keyframes_edit.h
source/blender/editors/include/ED_keyframing.h
source/blender/editors/interface/interface_anim.c
source/blender/editors/space_action/action_edit.c
source/blender/editors/space_action/action_header.c
source/blender/editors/space_graph/graph_edit.c
source/blender/editors/transform/transform_conversions.c