diff options
author | Joshua Leung <aligorith@gmail.com> | 2007-08-22 14:07:42 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2007-08-22 14:07:42 +0400 |
commit | f237a466c111b439a278ff78a959bc4c63cacfd0 (patch) | |
tree | 4455b2cf3e1607d6e2bf30631767c42b1eca0642 /source/blender/src/drawaction.c | |
parent | 59016f9f5da298568f0d7c1a9af98b03aa6477ad (diff) |
Minor Code Cleanup (ShapeKeys):
Added a new API method for ShapeKeys, which is useful for finding a certain KeyBlock from a Key.
Diffstat (limited to 'source/blender/src/drawaction.c')
-rw-r--r-- | source/blender/src/drawaction.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |