Forgot to update this file. Constraints now go into the new constraint tab. :)
authorThomas Dinges <blender@dingto.org>
Sat, 6 Jun 2009 22:14:45 +0000 (22:14 +0000)
committerThomas Dinges <blender@dingto.org>
Sat, 6 Jun 2009 22:14:45 +0000 (22:14 +0000)
release/ui/buttons_object_constraint.py

index 5b32124ff334b5321b7e3b32c79d8f7f3f42eb0d..f4507f9149d72559107ed99d0e3d0f5544e90aca 100644 (file)
@@ -4,7 +4,7 @@ import bpy
 class ConstraintButtonsPanel(bpy.types.Panel):
        __space_type__ = "BUTTONS_WINDOW"
        __region_type__ = "WINDOW"
-       __context__ = "object"
+       __context__ = "constraint"
 
        def draw_constraint(self, con):
                layout = self.layout
@@ -509,7 +509,7 @@ class ConstraintButtonsPanel(bpy.types.Panel):
 class OBJECT_PT_constraints(ConstraintButtonsPanel):
        __idname__ = "OBJECT_PT_constraints"
        __label__ = "Constraints"
-       __context__ = "object"
+       __context__ = "constraint"
 
        def poll(self, context):
                return (context.object != None)
@@ -527,8 +527,8 @@ class OBJECT_PT_constraints(ConstraintButtonsPanel):
 
 class BONE_PT_constraints(ConstraintButtonsPanel):
        __idname__ = "BONE_PT_constraints"
-       __label__ = "Constraints"
-       __context__ = "bone"
+       __label__ = "Bone Constraints"
+       __context__ = "constraint"
 
        def poll(self, context):
                ob = context.object
@@ -547,5 +547,4 @@ class BONE_PT_constraints(ConstraintButtonsPanel):
                        self.draw_constraint(con)
 
 bpy.types.register(OBJECT_PT_constraints)
-bpy.types.register(BONE_PT_constraints)
-
+bpy.types.register(BONE_PT_constraints)
\ No newline at end of file