[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [16856] trunk/blender/source/blender/ python/api2_2x/NLA.c: Bugfix #17721: Action Strips added from scripts don' t work properly unless at least one strip has already been added by hand.

Joshua Leung aligorith at gmail.com
Wed Oct 1 02:14:35 CEST 2008


Revision: 16856
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16856
Author:   aligorith
Date:     2008-10-01 02:14:28 +0200 (Wed, 01 Oct 2008)

Log Message:
-----------
Bugfix #17721: Action Strips added from scripts don't work properly unless at least one strip has already been added by hand.

Synced the behaviour of the PyAPI when adding strips with the behaviour of UI.

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

Modified: trunk/blender/source/blender/python/api2_2x/NLA.c
===================================================================
--- trunk/blender/source/blender/python/api2_2x/NLA.c	2008-10-01 00:02:06 UTC (rev 16855)
+++ trunk/blender/source/blender/python/api2_2x/NLA.c	2008-10-01 00:14:28 UTC (rev 16856)
@@ -1438,7 +1438,11 @@
     strip->flag = ACTSTRIP_LOCK_ACTION;
     find_stridechannel(ob, strip);
 
+	if(ob->nlastrips.first == NULL)
+		ob->nlaflag |= OB_NLA_OVERRIDE;
+	
     strip->repeat = 1.0;
+	strip->scale = 1.0;
     act->id.us++;
 
     BLI_addtail(&ob->nlastrips, strip);





More information about the Bf-blender-cvs mailing list