Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mocap
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-09-23 02:52:34 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-09-23 02:52:34 +0400
commit72fc659967222d0f83468b64af3fcf36ec116835 (patch)
treeb084ec025400c59d4884eb4100996e6e9e40e24a /mocap
parent9bb9621ec080adf8dffae54ed2f37d6cc13bd7f6 (diff)
update mocap utils for changes in blenders modules
Diffstat (limited to 'mocap')
-rw-r--r--mocap/mocap_constraints.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/mocap/mocap_constraints.py b/mocap/mocap_constraints.py
index 58fbdbac..a8d88c3a 100644
--- a/mocap/mocap_constraints.py
+++ b/mocap/mocap_constraints.py
@@ -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 @@ def bakeAllConstraints(obj, s_frame, e_frame, bones):
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)