diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-01-04 11:00:16 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-01-04 11:00:16 +0300 |
commit | a735629fd17edd9c0919789dddabee71012fa6a5 (patch) | |
tree | df1600cc3b5133df7ad4c202996a4d7f308a9652 /source/blender/editors/animation | |
parent | f71ff8639cecba62c0477790eea8159d6d75e3c5 (diff) |
no need to define betz in editcurve.c, replace ob_get_key with inline check for anim filter code.
Diffstat (limited to 'source/blender/editors/animation')
-rw-r--r-- | source/blender/editors/animation/anim_filter.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/source/blender/editors/animation/anim_filter.c b/source/blender/editors/animation/anim_filter.c index 2cbcc42efa3..791955dcfba 100644 --- a/source/blender/editors/animation/anim_filter.c +++ b/source/blender/editors/animation/anim_filter.c @@ -105,23 +105,7 @@ static Key *actedit_get_shapekeys (bAnimContext *ac) //if (saction->pin) return NULL; /* shapekey data is stored with geometry data */ - switch (ob->type) { - case OB_MESH: - key= ((Mesh *)ob->data)->key; - break; - - case OB_LATTICE: - key= ((Lattice *)ob->data)->key; - break; - - case OB_CURVE: - case OB_SURF: - key= ((Curve *)ob->data)->key; - break; - - default: - return NULL; - } + key= ob_get_key(ob); if (key) { if (key->type == KEY_RELATIVE) |