From fb9b3022d37c3d54897c8d5f3c36148569b341cf Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Wed, 11 Jul 2007 10:13:59 +0000 Subject: [PATCH] Bugfix #6931: I-Key on Fields not working for Empty Object. Was wrongly only checking for Meshes. --- source/blender/src/editipo.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/source/blender/src/editipo.c b/source/blender/src/editipo.c index f4ce725ae45..f08c78cb0c2 100644 --- a/source/blender/src/editipo.c +++ b/source/blender/src/editipo.c @@ -2659,11 +2659,14 @@ void common_insertkey(void) } else if(G.buts->mainb==CONTEXT_OBJECT) { ob= OBACT; - if(ob && ob->type==OB_MESH) { + if(ob) { id= (ID *) (ob); if(id) { - event= pupmenu("Insert Key %t|Surface Damping%x0|Random Damping%x1|Permeability%x2|Force Strength%x3|Force Falloff%x4"); - if(event== -1) return; + if(ob->type==OB_MESH) + event= pupmenu("Insert Key %t|Surface Damping%x0|Random Damping%x1|Permeability%x2|Force Strength%x3|Force Falloff%x4"); + else + event= pupmenu("Insert Key %t|Force Strength%x3|Force Falloff%x4"); + if(event == -1) return; if(event==0) { insertkey(id, ID_OB, NULL, NULL, OB_PD_SDAMP);