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:
-rw-r--r--release/scripts/startup/bl_ui/properties_constraint.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/properties_constraint.py b/release/scripts/startup/bl_ui/properties_constraint.py
index 04d43c28c27..db3bcc07389 100644
--- a/release/scripts/startup/bl_ui/properties_constraint.py
+++ b/release/scripts/startup/bl_ui/properties_constraint.py
@@ -954,7 +954,7 @@ class ConstraintButtonsSubPanel(Panel):
if context.pose_bone:
con = context.pose_bone.constraints[self.list_panel_index]
else:
- con = context.active.constraints[self.list_panel_index]
+ con = context.object.constraints[self.list_panel_index]
self.layout.context_pointer_set("constraint", con)
return con