diff options
author | Ton Roosendaal <ton@blender.org> | 2004-10-31 13:52:38 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2004-10-31 13:52:38 +0300 |
commit | c00d9217399f75fed373f4835cb5edbe999ee2ad (patch) | |
tree | f3bd7b8a3759b2b3b0860f386570bee5adfd4f1b /source/blender/src/header_action.c | |
parent | 13e7525152e9bd7f187bcc89adfd50c5ac4d37ff (diff) |
Three cosmetic changes;
- removed obsolete ">>" from several menu buttons
- removed convert to cardinal/bspline buttons, dont work you know :)
- made sure a HOME event on ActionWindow works on epty window too
Diffstat (limited to 'source/blender/src/header_action.c')
-rw-r--r-- | source/blender/src/header_action.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/src/header_action.c b/source/blender/src/header_action.c index f025c698f98..ba65c029362 100644 --- a/source/blender/src/header_action.c +++ b/source/blender/src/header_action.c @@ -138,8 +138,8 @@ void do_action_buttons(unsigned short event) G.v2d->cur.ymin=-SCROLLB; if (!G.saction->action){ // here the mesh rvk? - G.v2d->cur.xmax=0; - G.v2d->cur.xmax=100; + G.v2d->cur.xmax= -5; + G.v2d->cur.xmax= 100; } else { float extra; @@ -148,6 +148,11 @@ void do_action_buttons(unsigned short event) extra= 0.05*(G.v2d->cur.xmax - G.v2d->cur.xmin); G.v2d->cur.xmin-= extra; G.v2d->cur.xmax+= extra; + + if(G.v2d->cur.xmin==G.v2d->cur.xmax) { + G.v2d->cur.xmax= -5; + G.v2d->cur.xmax= 100; + } } G.v2d->tot= G.v2d->cur; |