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:
authorCampbell Barton <ideasman42@gmail.com>2008-01-03 12:41:19 +0300
committerCampbell Barton <ideasman42@gmail.com>2008-01-03 12:41:19 +0300
commitf1cb4d521c121092710e4e2118cce825e8fd5c7d (patch)
treeea8bbbb087728b732c447d0b32f2d650fe53d04d /source/blender/python/api2_2x/NLA.c
parent27061f5fe9ddb30b389843a44f9789b84b15ed4e (diff)
patch from John Croisant [#8045] Allows muting NLA strips via Python API
https://projects.blender.org/tracker/index.php?func=detail&aid=8045&group_id=9&atid=127
Diffstat (limited to 'source/blender/python/api2_2x/NLA.c')
-rw-r--r--source/blender/python/api2_2x/NLA.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/NLA.c b/source/blender/python/api2_2x/NLA.c
index a0bdaa83d07..8fbb468de88 100644
--- a/source/blender/python/api2_2x/NLA.c
+++ b/source/blender/python/api2_2x/NLA.c
@@ -1,5 +1,5 @@
/*
- * $Id: NLA.c 11907 2007-08-31 18:21:12Z campbellbarton $
+ * $Id$
*
* ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
*
@@ -805,7 +805,8 @@ static int ActionStrip_setBlendMode( BPy_ActionStrip * self, PyObject * value )
*/
#define ACTIONSTRIP_MASK (ACTSTRIP_SELECT | ACTSTRIP_USESTRIDE \
- | ACTSTRIP_HOLDLASTFRAME | ACTSTRIP_ACTIVE | ACTSTRIP_LOCK_ACTION)
+ | ACTSTRIP_HOLDLASTFRAME | ACTSTRIP_ACTIVE | ACTSTRIP_LOCK_ACTION \
+ | ACTSTRIP_MUTE)
static PyObject *ActionStrip_getFlag( BPy_ActionStrip * self )
{
@@ -1181,6 +1182,8 @@ static PyObject *M_ActionStrip_FlagsDict( void )
PyInt_FromLong( ACTSTRIP_ACTIVE ) );
PyConstant_Insert( d, "LOCK_ACTION",
PyInt_FromLong( ACTSTRIP_LOCK_ACTION ) );
+ PyConstant_Insert( d, "MUTE",
+ PyInt_FromLong( ACTSTRIP_MUTE ) );
}
return S;
}