[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2346] trunk/py/scripts/addons/mocap/ mocap_constraints.py: update mocap utils for changes in blenders modules
Campbell Barton
ideasman42 at gmail.com
Fri Sep 23 00:52:34 CEST 2011
Revision: 2346
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2346
Author: campbellbarton
Date: 2011-09-22 22:52:34 +0000 (Thu, 22 Sep 2011)
Log Message:
-----------
update mocap utils for changes in blenders modules
Modified Paths:
--------------
trunk/py/scripts/addons/mocap/mocap_constraints.py
Modified: trunk/py/scripts/addons/mocap/mocap_constraints.py
===================================================================
--- trunk/py/scripts/addons/mocap/mocap_constraints.py 2011-09-22 19:47:33 UTC (rev 2345)
+++ trunk/py/scripts/addons/mocap/mocap_constraints.py 2011-09-22 22:52:34 UTC (rev 2346)
@@ -20,7 +20,7 @@
import bpy
from mathutils import Vector
-from bl_operators import nla
+from bpy_extras import anim_utils
from . import retarget
@@ -383,8 +383,14 @@
constraintStrip.frame_start = s_frame
constraintStrip.frame_end = e_frame
if selectedBones:
- #Use bake function from NLA Bake Action operator
- nla.bake(s_frame, e_frame, action=constraintStrip.action, only_selected=True, do_pose=True, do_object=False)
+ # Use bake function from NLA Bake Action operator
+ anim_utils.bake_action(s_frame,
+ e_frame,
+ action=constraintStrip.action,
+ only_selected=True,
+ do_pose=True,
+ do_object=False,
+ )
if simpleBake:
#Do a "simple" bake, location only, world space only.
locBake(s_frame, e_frame, simpleBake)
More information about the Bf-extensions-cvs
mailing list