[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [14916] trunk/blender/source/blender/ python/api2_2x: add missing flags for NLA strips

Campbell Barton ideasman42 at gmail.com
Wed May 21 21:24:36 CEST 2008


Revision: 14916
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=14916
Author:   campbellbarton
Date:     2008-05-21 21:24:35 +0200 (Wed, 21 May 2008)

Log Message:
-----------
add missing flags for NLA strips

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-05-21 16:42:46 UTC (rev 14915)
+++ trunk/blender/source/blender/python/api2_2x/NLA.c	2008-05-21 19:24:35 UTC (rev 14916)
@@ -803,7 +803,7 @@
 
 #define ACTIONSTRIP_MASK (ACTSTRIP_SELECT | ACTSTRIP_USESTRIDE \
 		| ACTSTRIP_HOLDLASTFRAME | ACTSTRIP_ACTIVE | ACTSTRIP_LOCK_ACTION \
-		| ACTSTRIP_MUTE)
+		| ACTSTRIP_MUTE | ACTSTRIP_CYCLIC_USEX | ACTSTRIP_CYCLIC_USEY | ACTSTRIP_CYCLIC_USEZ | ACTSTRIP_AUTO_BLENDS)
 
 static PyObject *ActionStrip_getFlag( BPy_ActionStrip * self )
 {
@@ -1169,18 +1169,16 @@
 	
 	if( S ) {
 		BPy_constant *d = ( BPy_constant * ) S;
-		PyConstant_Insert( d, "SELECT",
-				PyInt_FromLong( ACTSTRIP_SELECT ) );
-		PyConstant_Insert( d, "STRIDE_PATH",
-				PyInt_FromLong( ACTSTRIP_USESTRIDE ) );
-		PyConstant_Insert( d, "HOLD",
-				PyInt_FromLong( ACTSTRIP_HOLDLASTFRAME ) );
-		PyConstant_Insert( d, "ACTIVE",
-				PyInt_FromLong( ACTSTRIP_ACTIVE ) );
-		PyConstant_Insert( d, "LOCK_ACTION",
-				PyInt_FromLong( ACTSTRIP_LOCK_ACTION ) );
-		PyConstant_Insert( d, "MUTE",
-				PyInt_FromLong( ACTSTRIP_MUTE ) );
+		PyConstant_Insert( d, "SELECT",			PyInt_FromLong( ACTSTRIP_SELECT ) );
+		PyConstant_Insert( d, "STRIDE_PATH",	PyInt_FromLong( ACTSTRIP_USESTRIDE ) );
+		PyConstant_Insert( d, "HOLD",			PyInt_FromLong( ACTSTRIP_HOLDLASTFRAME ) );
+		PyConstant_Insert( d, "ACTIVE",			PyInt_FromLong( ACTSTRIP_ACTIVE ) );
+		PyConstant_Insert( d, "LOCK_ACTION",	PyInt_FromLong( ACTSTRIP_LOCK_ACTION ) );
+		PyConstant_Insert( d, "MUTE", 			PyInt_FromLong( ACTSTRIP_MUTE ) );
+		PyConstant_Insert( d, "USEX", 			PyInt_FromLong( ACTSTRIP_CYCLIC_USEX ) );
+		PyConstant_Insert( d, "USEY", 			PyInt_FromLong( ACTSTRIP_CYCLIC_USEY ) );
+		PyConstant_Insert( d, "USEZ", 			PyInt_FromLong( ACTSTRIP_CYCLIC_USEZ ) );
+		PyConstant_Insert( d, "AUTO_BLEND", 	PyInt_FromLong( ACTSTRIP_AUTO_BLENDS ) );
 	}
 	return S;
 }

Modified: trunk/blender/source/blender/python/api2_2x/doc/NLA.py
===================================================================
--- trunk/blender/source/blender/python/api2_2x/doc/NLA.py	2008-05-21 16:42:46 UTC (rev 14915)
+++ trunk/blender/source/blender/python/api2_2x/doc/NLA.py	2008-05-21 19:24:35 UTC (rev 14916)
@@ -19,7 +19,11 @@
 	- 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
-
+	- USEX: Turn off automatic single-axis cycling and use X as an offset axis.  Note that you can use multiple axes at once.
+	- USEY: Turn off automatic single-axis cycling and use Y as an offset axis.  Note that you can use multiple axes at once.
+	- USEZ: Turn off automatic single-axis cycling and use Z as an offset axis.  Note that you can use multiple axes at once.
+	- AUTO_BLEND: Automatic calculation of blend in/out values
+	
 @type StrideAxes: readonly dictionary
 @var StrideAxes: Constant dict used by the L{ActionStrip.strideAxis} attribute.
 Values are STRIDEAXIS_X, STRIDEAXIS_Y, and STRIDEAXIS_Z.





More information about the Bf-blender-cvs mailing list