[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [13108] trunk/blender/source/blender/ python/api2_2x: patch from John Croisant [#8045] Allows muting NLA strips via Python API

Campbell Barton ideasman42 at gmail.com
Thu Jan 3 10:41:19 CET 2008


Revision: 13108
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=13108
Author:   campbellbarton
Date:     2008-01-03 10:41:19 +0100 (Thu, 03 Jan 2008)

Log Message:
-----------
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

Modified Paths:
--------------
    trunk/blender/source/blender/python/api2_2x/NLA.c
    trunk/blender/source/blender/python/api2_2x/doc/NLA.py

Modified: trunk/blender/source/blender/python/api2_2x/NLA.c
===================================================================
--- trunk/blender/source/blender/python/api2_2x/NLA.c	2008-01-03 09:06:11 UTC (rev 13107)
+++ trunk/blender/source/blender/python/api2_2x/NLA.c	2008-01-03 09:41:19 UTC (rev 13108)
@@ -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 @@
  */
 
 #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 @@
 				PyInt_FromLong( ACTSTRIP_ACTIVE ) );
 		PyConstant_Insert( d, "LOCK_ACTION",
 				PyInt_FromLong( ACTSTRIP_LOCK_ACTION ) );
+		PyConstant_Insert( d, "MUTE",
+				PyInt_FromLong( ACTSTRIP_MUTE ) );
 	}
 	return S;
 }

Modified: trunk/blender/source/blender/python/api2_2x/doc/NLA.py
===================================================================
--- trunk/blender/source/blender/python/api2_2x/doc/NLA.py	2008-01-03 09:06:11 UTC (rev 13107)
+++ trunk/blender/source/blender/python/api2_2x/doc/NLA.py	2008-01-03 09:41:19 UTC (rev 13108)
@@ -18,6 +18,7 @@
 	- HOLD: continue displaying the last frame past the end of the strip
 	- ACTIVE: action strip is active in NLA window
 	- LOCK_ACTION: action start/end are automatically mapped to strip duration
+	- MUTE: action strip does not contribute to the NLA solution
 
 @type StrideAxes: readonly dictionary
 @var StrideAxes: Constant dict used by the L{ActionStrip.strideAxis} attribute.





More information about the Bf-blender-cvs mailing list