From 30f1deccd0fb23c408a9241174a939345412763c Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Sun, 2 Sep 2007 17:47:03 +0000 Subject: Bugfix #7020 Buttons window, Object context, Anim Settings panel, "draw key" did not work. Bug since year zero... --- source/blender/src/buttons_object.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source/blender/src') diff --git a/source/blender/src/buttons_object.c b/source/blender/src/buttons_object.c index 8eb883d6211..85c876c31a3 100644 --- a/source/blender/src/buttons_object.c +++ b/source/blender/src/buttons_object.c @@ -2141,6 +2141,11 @@ void do_object_panels(unsigned short event) allqueue(REDRAWVIEW3D, 0); break; + case B_OBJECT_IPOFLAG: + if(ob->ipo) ob->ipo->showkey= (ob->ipoflag & OB_DRAWKEY)?1:0; + allqueue(REDRAWVIEW3D, 0); + break; + default: if(event>=B_SELEFFECT && eventupflag, 13.0, 2.0, 0, 0, "Specify the axis that points up"); uiBlockBeginAlign(block); - uiDefButBitS(block, TOG, OB_DRAWKEY, REDRAWVIEW3D, "Draw Key", 24,155,71,19, &ob->ipoflag, 0, 0, 0, 0, "Draw object as key position"); + uiDefButBitS(block, TOG, OB_DRAWKEY, B_OBJECT_IPOFLAG, "Draw Key", 24,155,71,19, &ob->ipoflag, 0, 0, 0, 0, "Draw object as key position"); uiDefButBitS(block, TOG, OB_DRAWKEYSEL, REDRAWVIEW3D, "Draw Key Sel", 97,155,81,19, &ob->ipoflag, 0, 0, 0, 0, "Limit the drawing of object keys"); uiDefButBitS(block, TOG, OB_POWERTRACK, REDRAWVIEW3D, "Powertrack", 180,155,78,19, &ob->transflag, 0, 0, 0, 0, "Switch objects rotation off"); uiDefButBitS(block, TOG, PARSLOW, 0, "SlowPar", 260,155,56,19, &ob->partype, 0, 0, 0, 0, "Create a delay in the parent relationship"); -- cgit v1.2.3