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
18b7b14a
Commit
18b7b14a
authored
13 years ago
by
Nathan Vegdahl
Browse files
Options
Downloads
Patches
Plain Diff
Rigify: changed quat/vector multiplication order to conform to api changes.
parent
6085c7ac
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
rigify/rig_ui_template.py
+3
-3
3 additions, 3 deletions
rigify/rig_ui_template.py
with
3 additions
and
3 deletions
rigify/rig_ui_template.py
+
3
−
3
View file @
18b7b14a
...
...
@@ -81,7 +81,7 @@ def set_pose_translation(pose_bone, mat):
par_rest = Matrix()
q = (par_rest.inverted() * rest).to_quaternion()
pose_bone.location =
loc * q
pose_bone.location =
q * loc
def set_pose_rotation(pose_bone, mat):
...
...
@@ -200,7 +200,7 @@ def match_pole_target(ik_first, ik_last, pole, match_bone, length):
# Compensate for the rotation difference
if angle > 0.0001:
pv
*
= Matrix.Rotation(angle, 4, ikv).to_quaternion()
pv = Matrix.Rotation(angle, 4, ikv).to_quaternion()
* pv
set_pole(pv)
# Get rotation difference again, to see if we
...
...
@@ -210,7 +210,7 @@ def match_pole_target(ik_first, ik_last, pole, match_bone, length):
angle2 = acos(min(1,max(-1,q1.dot(q2)))) * 2
if angle2 > 0.0001:
# Compensate in the other direction
pv
*
= Matrix.Rotation((angle*(-2)), 4, ikv).to_quaternion()
pv = Matrix.Rotation((angle*(-2)), 4, ikv).to_quaternion()
* pv
set_pole(pv)
...
...
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