Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2007-06-26 14:08:58 +0400
committerJoshua Leung <aligorith@gmail.com>2007-06-26 14:08:58 +0400
commita82b7171a2cd0730d61baee2b3810a54854235dd (patch)
treeecd44297b2d8ec9a456cecdc81626174412bd45f /source/blender/include/BIF_editaction.h
parentcc1a3941cc54ecd4944ad9949d0983a93b27af95 (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/include/BIF_editaction.h')
-rw-r--r--source/blender/include/BIF_editaction.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/include/BIF_editaction.h b/source/blender/include/BIF_editaction.h
index 838bbb5c34c..b6dd9ae55a8 100644
--- a/source/blender/include/BIF_editaction.h
+++ b/source/blender/include/BIF_editaction.h
@@ -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