[Bf-extensions-cvs] [d5448fc] master: Copy Attributes Addon: Copy bbone settings. Patch by Bassam

Daniel Salazar noreply at git.blender.org
Thu Feb 20 07:08:38 CET 2014


Commit: d5448fc90ab2e1432f493500ec26366741080251
Author: Daniel Salazar
Date:   Thu Feb 20 00:06:21 2014 -0600
https://developer.blender.org/rBAd5448fc90ab2e1432f493500ec26366741080251

Copy Attributes Addon: Copy bbone settings. Patch by Bassam

===================================================================

M	space_view3d_copy_attributes.py

===================================================================

diff --git a/space_view3d_copy_attributes.py b/space_view3d_copy_attributes.py
index d513938..1ff6ebf 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



More information about the Bf-extensions-cvs mailing list