From c8f0404f53259f6ded382a3b46a3cf23056b2af5 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Wed, 5 Jan 2011 08:31:05 +0000 Subject: Bugfix #25494: Lattice keyframes can't be selected in dopesheet (summary) Oops.. missed one place --- source/blender/editors/animation/keyframes_draw.c | 2 ++ source/blender/editors/animation/keyframes_edit.c | 11 +++++++++++ 2 files changed, 13 insertions(+) (limited to 'source') diff --git a/source/blender/editors/animation/keyframes_draw.c b/source/blender/editors/animation/keyframes_draw.c index aefb853cc5f..834a1028c6a 100644 --- a/source/blender/editors/animation/keyframes_draw.c +++ b/source/blender/editors/animation/keyframes_draw.c @@ -758,6 +758,8 @@ void ob_to_keylist(bDopeSheet *ads, Object *ob, DLRBT_Tree *keys, DLRBT_Tree *bl /* add material's data */ action_to_keylist(ma->adt, ma->adt->action, keys, blocks); + + // TODO: textures... } } diff --git a/source/blender/editors/animation/keyframes_edit.c b/source/blender/editors/animation/keyframes_edit.c index 0958b4870b5..d675bf673cd 100644 --- a/source/blender/editors/animation/keyframes_edit.c +++ b/source/blender/editors/animation/keyframes_edit.c @@ -39,6 +39,7 @@ #include "DNA_camera_types.h" #include "DNA_key_types.h" #include "DNA_lamp_types.h" +#include "DNA_lattice_types.h" #include "DNA_mesh_types.h" #include "DNA_material_types.h" #include "DNA_object_types.h" @@ -318,6 +319,16 @@ static short ob_keyframes_loop(KeyframeEditData *ked, Object *ob, KeyframeEditFu } } break; + case OB_LATTICE: /* ---- Lattice ------ */ + { + Lattice *lt= (Lattice *)ob->data; + + if ((lt->adt) && !(filterflag & ADS_FILTER_NOLAT)) { + if (adt_keyframes_loop(ked, lt->adt, key_ok, key_cb, fcu_cb, filterflag)) + return 1; + } + } + break; } /* Add Particle System Keyframes */ -- cgit v1.2.3