Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2007-09-02 21:47:03 +0400
committerTon Roosendaal <ton@blender.org>2007-09-02 21:47:03 +0400
commit30f1deccd0fb23c408a9241174a939345412763c (patch)
tree6498d933c822aba62db257e423d2204b0641b668 /source/blender/src
parent600c4c7c19f83aa4725cec9ec1526741f0a04c58 (diff)
Bugfix #7020
Buttons window, Object context, Anim Settings panel, "draw key" did not work. Bug since year zero...
Diffstat (limited to 'source/blender/src')
-rw-r--r--source/blender/src/buttons_object.c7
1 files changed, 6 insertions, 1 deletions
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 && event<B_SELEFFECT+MAX_EFFECT) {
int a=B_SELEFFECT;
@@ -2321,7 +2326,7 @@ static void object_panel_anim(Object *ob)
uiDefButS(block, ROW,REDRAWVIEW3D,"Z", 298,180,19,19, &ob->upflag, 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");