Keyframing Operator Code Cleanup:
authorJoshua Leung <aligorith@gmail.com>
Mon, 3 Jan 2011 05:36:52 +0000 (05:36 +0000)
committerJoshua Leung <aligorith@gmail.com>
Mon, 3 Jan 2011 05:36:52 +0000 (05:36 +0000)
commitca0b5434fa0f729df57557ff1ec369c9118e2f63
tree4b0de0c5e7f3469d81d267d3a8a3253f8baabcb3
parent1ba9dde22d07633d41eea6db10320a14422a2448
Keyframing Operator Code Cleanup:

Keyframing operators now use a dynamically-generated enum for their
"type" property, which determines the Keying Set to use for keyframing
instead of the obscure "index" values which were determined
internally. Internally though, these same indices are still being used
:)

Notes:
- I've kept the menu-building function and the special "menu" operator
for now, since it's better to not "pollute" the actual insert
keyframes operator with hardcoded menu-showing logic. Instead, the
menu operator does that, so that if you like, you could write another
such wrapper that works differently.
- The 'type' properties could have the PROP_HIDDEN flags removed,
though I think it's cleaner to leave these without this option for
now.
source/blender/editors/animation/keyframing.c
source/blender/editors/animation/keyingsets.c
source/blender/editors/include/ED_keyframing.h