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

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--space_view3d_copy_attributes.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/space_view3d_copy_attributes.py b/space_view3d_copy_attributes.py
index 2d1fff59..29da77ab 100644
--- a/space_view3d_copy_attributes.py
+++ b/space_view3d_copy_attributes.py
@@ -575,11 +575,7 @@ class CopySelectedObjectConstraints(Operator):
for obj in selected:
for index, flag in enumerate(self.selection):
if flag:
- old_constraint = active.constraints[index]
- new_constraint = obj.constraints.new(
- active.constraints[index].type
- )
- generic_copy(old_constraint, new_constraint)
+ obj.constraints.copy(active.constraints[index])
return{'FINISHED'}