diff options
author | Joshua Leung <aligorith@gmail.com> | 2007-06-26 14:08:58 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2007-06-26 14:08:58 +0400 |
commit | a82b7171a2cd0730d61baee2b3810a54854235dd (patch) | |
tree | ecd44297b2d8ec9a456cecdc81626174412bd45f /source/blender/src/editipo_mods.c | |
parent | cc1a3941cc54ecd4944ad9949d0983a93b27af95 (diff) |
== Action/IPO Editors - Code Cleanup ==
Added two macros which are used to test if the active Action/IPO editor is displaying data from a scaled NLA-strip.
Diffstat (limited to 'source/blender/src/editipo_mods.c')
-rw-r--r-- | source/blender/src/editipo_mods.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/src/editipo_mods.c b/source/blender/src/editipo_mods.c index 2621ad54979..08157c7eef3 100644 --- a/source/blender/src/editipo_mods.c +++ b/source/blender/src/editipo_mods.c @@ -58,6 +58,7 @@ #include "BKE_key.h" #include "BKE_utildefines.h" +#include "BIF_editaction.h" #include "BIF_interface.h" #include "BIF_screen.h" #include "BIF_space.h" @@ -927,7 +928,7 @@ void borderselect_ipo(void) if(val) { /* map ipo-points for editing if scaled ipo */ - if (OBACT && OBACT->action && G.sipo->pin==0 && G.sipo->actname) { + if (NLA_IPO_SCALED) { actstrip_map_ipo_keys(OBACT, G.sipo->ipo, 0, 0); } @@ -979,7 +980,7 @@ void borderselect_ipo(void) } /* undo mapping of ipo-points for drawing if scaled ipo */ - if (OBACT && OBACT->action && G.sipo->pin==0 && G.sipo->actname) { + if (NLA_IPO_SCALED) { actstrip_map_ipo_keys(OBACT, G.sipo->ipo, 1, 0); } |