Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender-addons
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
blender-addons
Commits
45e8032f
Commit
45e8032f
authored
13 years ago
by
Campbell Barton
Browse files
Options
Downloads
Patches
Plain Diff
fix error enabling mocap tools [#28933]
parent
855de6d1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mocap/__init__.py
+7
-6
7 additions, 6 deletions
mocap/__init__.py
with
7 additions
and
6 deletions
mocap/__init__.py
+
7
−
6
View file @
45e8032f
...
@@ -50,9 +50,10 @@ else:
...
@@ -50,9 +50,10 @@ else:
PointerProperty
,
PointerProperty
,
StringProperty
,
StringProperty
,
)
)
from
.
import
mocap_constraints
from
.
import
(
mocap_constraints
,
from
.
import
retarget
retarget
,
from
.
import
mocap_tools
mocap_tools
,
)
# MocapConstraint class
# MocapConstraint class
...
@@ -229,7 +230,8 @@ def toggleIKBone(self, context):
...
@@ -229,7 +230,8 @@ def toggleIKBone(self, context):
class
MocapMapping
(
bpy
.
types
.
PropertyGroup
):
class
MocapMapping
(
bpy
.
types
.
PropertyGroup
):
name
=
StringProperty
()
name
=
StringProperty
()
# Disabling for now [#28933] - campbell
'''
def updateIKRetarget():
def updateIKRetarget():
# ensures that Blender constraints and IK properties are in sync
# ensures that Blender constraints and IK properties are in sync
# currently runs when module is loaded, should run when scene is loaded
# currently runs when module is loaded, should run when scene is loaded
...
@@ -244,9 +246,8 @@ def updateIKRetarget():
...
@@ -244,9 +246,8 @@ def updateIKRetarget():
else:
else:
pose_bone.IKRetarget = False
pose_bone.IKRetarget = False
updateIKRetarget()
updateIKRetarget()
'''
def
hasIKConstraint
(
pose_bone
):
def
hasIKConstraint
(
pose_bone
):
#utility function / predicate, returns True if given bone has IK constraint
#utility function / predicate, returns True if given bone has IK constraint
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment