diff options
author | Joshua Leung <aligorith@gmail.com> | 2010-01-02 07:14:17 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2010-01-02 07:14:17 +0300 |
commit | a7d268d38e348722977a9fcf72624af691e724cd (patch) | |
tree | 36b8374679b46ce301a301226326dcd3605a0557 /release/scripts | |
parent | bbac520987e68492d27c12a2b863c7839309008b (diff) |
Cessen Rigging Request: "Copy Transforms" Constraint
This constraint simply copies the transformation matrix of the target, and assigns it to the owner.
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/ui/properties_data_armature.py | 2 | ||||
-rw-r--r-- | release/scripts/ui/properties_object_constraint.py | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/release/scripts/ui/properties_data_armature.py b/release/scripts/ui/properties_data_armature.py index 28cf215fa62..e751aaf772c 100644 --- a/release/scripts/ui/properties_data_armature.py +++ b/release/scripts/ui/properties_data_armature.py @@ -89,6 +89,7 @@ class DATA_PT_display(DataButtonsPanel): def draw(self, context): layout = self.layout + ob = context.object arm = context.armature wide_ui = context.region.width > narrowui @@ -108,6 +109,7 @@ class DATA_PT_display(DataButtonsPanel): col = split.column() col.prop(arm, "draw_group_colors", text="Colors") col.prop(arm, "delay_deform", text="Delay Refresh") + col.prop(ob, "x_ray", text="X-Ray (Object)") class DATA_PT_bone_groups(DataButtonsPanel): diff --git a/release/scripts/ui/properties_object_constraint.py b/release/scripts/ui/properties_object_constraint.py index 6bff8d6d727..cb6f8cd71a2 100644 --- a/release/scripts/ui/properties_object_constraint.py +++ b/release/scripts/ui/properties_object_constraint.py @@ -460,6 +460,12 @@ class ConstraintButtonsPanel(bpy.types.Panel): layout.prop(con, "use_offset") self.space_template(layout, con, wide_ui) + + def COPY_TRANSFORMS(self, context, layout, con, wide_ui): + self.target_template(layout, con, wide_ui) + + self.space_template(layout, con, wide_ui) + #def SCRIPT(self, context, layout, con): |