diff options
author | Joshua Leung <aligorith@gmail.com> | 2007-05-03 11:26:38 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2007-05-03 11:26:38 +0400 |
commit | 165da403adf5d4fe61e7d5f24b1178138c9b845d (patch) | |
tree | c4943659fd3b1751ee5d1219d94f2cb90144ce0a /source/blender/src/editipo_mods.c | |
parent | d508bc0a4215e87a284585ff9cab7735bb1963b1 (diff) |
== IPO Editor - IPO Scaling ==
Cleanups of code for this. Just removed un-necesarry checks.
Diffstat (limited to 'source/blender/src/editipo_mods.c')
-rw-r--r-- | source/blender/src/editipo_mods.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/source/blender/src/editipo_mods.c b/source/blender/src/editipo_mods.c index af635aa5368..9de9016253c 100644 --- a/source/blender/src/editipo_mods.c +++ b/source/blender/src/editipo_mods.c @@ -910,10 +910,8 @@ void borderselect_ipo(void) if(val) { /* map ipo-points for editing if scaled ipo */ - if (OBACT && OBACT->action && G.sipo->pin==0) { - if (G.sipo->actname || G.sipo->constname) { - actstrip_map_ipo_keys(OBACT, G.sipo->ipo, 0, 0); - } + if (OBACT && OBACT->action && G.sipo->pin==0 && G.sipo->actname) { + actstrip_map_ipo_keys(OBACT, G.sipo->ipo, 0, 0); } mval[0]= rect.xmin; @@ -964,10 +962,8 @@ void borderselect_ipo(void) } /* undo mapping of ipo-points for drawing if scaled ipo */ - if (OBACT && OBACT->action && G.sipo->pin==0) { - if (G.sipo->actname || G.sipo->constname) { - actstrip_map_ipo_keys(OBACT, G.sipo->ipo, 1, 0); - } + if (OBACT && OBACT->action && G.sipo->pin==0 && G.sipo->actname) { + actstrip_map_ipo_keys(OBACT, G.sipo->ipo, 1, 0); } BIF_undo_push("Border select Ipo"); |