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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-12-14 23:56:19 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-12-14 23:56:19 +0300
commite7b4d36fd6a57fb88fdca861dc251a6a8bdf6355 (patch)
treeb2b3338c312c61da07bc4ff7a6ebaef2ca54b718 /release/scripts/modules/rigify/arm_biped_generic.py
parent639dd6d25ec07535c8b856d527ffcc75c9a7b6d2 (diff)
* new metarig type for the durian dragon leg (original rig by Cessen)
* option to roll the delta of the arm rig. * fix to copy metarig type * renamed EditBone.align() --> EditBone.align_roll() * Added EditBone.align_orientation(other) * Added bone.vector: same as (bone.tail - bone.head)
Diffstat (limited to 'release/scripts/modules/rigify/arm_biped_generic.py')
-rw-r--r--release/scripts/modules/rigify/arm_biped_generic.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/release/scripts/modules/rigify/arm_biped_generic.py b/release/scripts/modules/rigify/arm_biped_generic.py
index 1c4c6fd2a6b..dc45ccf8ae8 100644
--- a/release/scripts/modules/rigify/arm_biped_generic.py
+++ b/release/scripts/modules/rigify/arm_biped_generic.py
@@ -19,6 +19,7 @@
# <pep8 compliant>
import bpy
+from math import radians
from rigify import RigifyError, get_layer_dict
from rigify_utils import bone_class_instance, copy_bone_simple, add_pole_target_bone, add_stretch_to, blend_bone_list, get_side_name, get_base_name
from rna_prop_ui import rna_idprop_ui_prop_get
@@ -213,6 +214,8 @@ def fk(obj, definitions, base_names, options):
ex.hand_delta = ex.hand_delta_e.name
ex.hand_delta_e.length *= 0.5
ex.hand_delta_e.connected = False
+ if "hand_roll" in options:
+ ex.hand_delta_e.roll += radians(options["hand_roll"])
fk_chain.hand_e.connected = False
fk_chain.hand_e.parent = ex.hand_delta_e