From f237a466c111b439a278ff78a959bc4c63cacfd0 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Wed, 22 Aug 2007 10:07:42 +0000 Subject: Minor Code Cleanup (ShapeKeys): Added a new API method for ShapeKeys, which is useful for finding a certain KeyBlock from a Key. --- source/blender/src/drawaction.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/src/drawaction.c') diff --git a/source/blender/src/drawaction.c b/source/blender/src/drawaction.c index 8d525b88472..5b65295d212 100644 --- a/source/blender/src/drawaction.c +++ b/source/blender/src/drawaction.c @@ -160,14 +160,14 @@ static void meshactionbuts(SpaceAction *saction, Object *ob, Key *key) glRects(NAMEWIDTH, 0, NAMEWIDTH+SLIDERWIDTH, curarea->winy); uiBlockSetEmboss(block, UI_EMBOSS); - for (i=1 ; i < key->totkey ; ++ i) { + for (i=1; i < key->totkey; i++) { make_rvk_slider(block, ob, i, x, y, SLIDERWIDTH-2, CHANNELHEIGHT-1, "Slider to control Shape Keys"); y-=CHANNELHEIGHT+CHANNELSKIP; /* see sliderval array in editkey.c */ - if(i>=255) break; + if(i >= 255) break; } } uiDrawBlock(block); -- cgit v1.2.3