Forgot to update this file. Constraints now go into the new constraint tab. :)

This commit is contained in:
Thomas Dinges
2009-06-06 22:14:45 +00:00
parent 927c8b5be6
commit 1bb8d745b9

View 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)