Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'release/scripts/ui/properties_object_constraint.py')
-rw-r--r--release/scripts/ui/properties_object_constraint.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/release/scripts/ui/properties_object_constraint.py b/release/scripts/ui/properties_object_constraint.py
index 87ca702fa69..b3a96841d71 100644
--- a/release/scripts/ui/properties_object_constraint.py
+++ b/release/scripts/ui/properties_object_constraint.py
@@ -678,8 +678,8 @@ class OBJECT_PT_constraints(ConstraintButtonsPanel, bpy.types.Panel):
bl_label = "Object Constraints"
bl_context = "constraint"
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return (context.object)
def draw(self, context):
@@ -697,8 +697,8 @@ class BONE_PT_constraints(ConstraintButtonsPanel, bpy.types.Panel):
bl_label = "Bone Constraints"
bl_context = "bone_constraint"
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return (context.pose_bone)
def draw(self, context):