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
diff options
context:
space:
mode:
authorDaniel Salazar <zanqdo@gmail.com>2014-02-20 10:06:21 +0400
committerDaniel Salazar <zanqdo@gmail.com>2014-02-20 10:06:21 +0400
commitd5448fc90ab2e1432f493500ec26366741080251 (patch)
tree8e274c30c6895f29ab9bd811cc14f2a0caf04450 /space_view3d_copy_attributes.py
parentd883ddcd26fc31faaf8c3d5a9e54b28f4333eca8 (diff)
Copy Attributes Addon: Copy bbone settings. Patch by Bassam
Diffstat (limited to 'space_view3d_copy_attributes.py')
-rw-r--r--space_view3d_copy_attributes.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/space_view3d_copy_attributes.py b/space_view3d_copy_attributes.py
index d5139383..1ff6ebfa 100644
--- a/space_view3d_copy_attributes.py
+++ b/space_view3d_copy_attributes.py
@@ -182,6 +182,14 @@ def pConExec(bone, active, context):
def pIKsExec(bone, active, context):
generic_copy(active, bone, "ik_")
+
+def pBBonesExec(bone, active, context):
+ object = active.id_data
+ generic_copy(
+ object.data.bones[active.name],
+ object.data.bones[bone.name],
+ "bbone_")
+
pose_copies = (('pose_loc_loc', "Local Location",
"Copy Location from Active to Selected", pLocLocExec),
('pose_loc_rot', "Local Rotation",
@@ -201,7 +209,9 @@ pose_copies = (('pose_loc_loc', "Local Location",
('pose_con', "Bone Constraints",
"Copy Object Constraints from Active to Selected", pConExec),
('pose_iks', "IK Limits",
- "Copy IK Limits from Active to Selected", pIKsExec))
+ "Copy IK Limits from Active to Selected", pIKsExec),
+ ('bbone_settings', "BBone Settings",
+ "Copy BBone Settings from Active to Selected", pBBonesExec),)
@classmethod