From f1cb4d521c121092710e4e2118cce825e8fd5c7d Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 3 Jan 2008 09:41:19 +0000 Subject: 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 --- source/blender/python/api2_2x/NLA.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'source/blender/python/api2_2x/NLA.c') 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; } -- cgit v1.2.3