== 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.
This commit is contained in:
Joshua Leung
2007-06-26 10:08:58 +00:00
parent cc1a3941cc
commit a82b7171a2
6 changed files with 40 additions and 38 deletions

View File

@@ -64,6 +64,9 @@
#define EDITABLE_ICU(icu) ((icu->flag & IPO_PROTECT)==0)
#define SEL_ICU(icu) (icu->flag & IPO_SELECT)
#define NLA_ACTION_SCALED (G.saction->pin==0 && OBACT)
#define NLA_IPO_SCALED (OBACT && OBACT->action && G.sipo->pin==0 && G.sipo->actname)
/* constants for setting ipo-interpolation type */
#define SET_IPO_POPUP 0
#define SET_IPO_CONSTANT 1