diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-06-27 18:07:17 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-06-27 18:07:17 +0400 |
commit | 2b8c574182fb1f9e34bf69a90901e1d95ff6b483 (patch) | |
tree | 0eeff9cb052913810485a850450e2a55bd3503ec | |
parent | 1d135cb95595f32164cb485115b8693cadb99b02 (diff) |
UI: move bone constraints panel to bone tab again.
-rw-r--r-- | release/ui/buttons_object_constraint.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/release/ui/buttons_object_constraint.py b/release/ui/buttons_object_constraint.py index 3048bdaa399..f2b0b986ab9 100644 --- a/release/ui/buttons_object_constraint.py +++ b/release/ui/buttons_object_constraint.py @@ -529,20 +529,20 @@ class OBJECT_PT_constraints(ConstraintButtonsPanel): class BONE_PT_constraints(ConstraintButtonsPanel): __idname__ = "BONE_PT_constraints" __label__ = "Bone Constraints" - __context__ = "constraint" + __context__ = "bone" def poll(self, context): ob = context.object - return (ob and ob.type == "ARMATURE") + return (ob and ob.type == "ARMATURE" and context.bone) def draw(self, context): ob = context.object - pchan = ob.pose.pose_channels[0] # XXX + pchan = ob.pose.pose_channels[context.bone.name] layout = self.layout - #row = layout.row() - #row.item_menu_enumO("BONE_OT_constraint_add", "type") - #row.itemL(); + row = layout.row() + row.item_menu_enumO("OBJECT_OT_constraint_add", "type") + row.itemL(); for con in pchan.constraints: self.draw_constraint(con) |