diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-09-10 08:12:48 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-09-10 08:12:48 +0400 |
commit | d1228ea8d8279c736871b94e71cb81fbf73ea2c6 (patch) | |
tree | d264235d9a3a5a4979589e47ca40a1e94bafc69f /mocap | |
parent | a90f3ac68158795efd17aa16229f865406c5e2e0 (diff) |
cleanup unused vars
Diffstat (limited to 'mocap')
-rw-r--r-- | mocap/__init__.py | 8 | ||||
-rw-r--r-- | mocap/retarget.py | 2 |
2 files changed, 3 insertions, 7 deletions
diff --git a/mocap/__init__.py b/mocap/__init__.py index 5a2405e4..55d8bdb7 100644 --- a/mocap/__init__.py +++ b/mocap/__init__.py @@ -182,7 +182,7 @@ def toggleIKBone(self, context): chainLen += 1 if hasIKConstraint(parent_bone): break - deformer_children = [child for child in parent_bone.children if child.bone.use_deform] + #~ deformer_children = [child for child in parent_bone.children if child.bone.use_deform] #~ if len(deformer_children) > 1: #~ break ik.chain_count = chainLen @@ -577,10 +577,6 @@ class OBJECT_OT_DenoiseButton(bpy.types.Operator): @classmethod def poll(cls, context): - return context.active_object - - @classmethod - def poll(cls, context): return context.active_object.animation_data @@ -879,7 +875,7 @@ def register(): #Advanced retargeting boolean property bpy.types.Armature.advancedRetarget = BoolProperty(default=False, update=advancedRetargetToggle) #frame step - frequency of frames to retarget. Skipping is useful for previewing, faster work etc. - bpy.types.Armature.frameStep = smooth_out = IntProperty(name="Frame Skip", + bpy.types.Armature.frameStep = IntProperty(name="Frame Skip", default=1, description="Amount of frames to skip - for previewing retargets quickly. 1 is fully sampled", min=1) diff --git a/mocap/retarget.py b/mocap/retarget.py index f79810fd..f5991200 100644 --- a/mocap/retarget.py +++ b/mocap/retarget.py @@ -20,7 +20,7 @@ import bpy from mathutils import Vector, Matrix -from math import radians, acos, pi +from math import radians from bl_operators import nla |