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:
authorDemeter Dzadik <demeter@blender.studio>2021-08-25 14:05:08 +0300
committerDemeter Dzadik <demeter@blender.studio>2021-08-25 14:05:10 +0300
commitb701b514de3671376de790358b2562214b964895 (patch)
treebbb12965d94efb0b660dcb437068bfd38c4904e6
parentfe12f8b97589baf56bf02a53cd73fc495a89909f (diff)
Same change as in D8422, that patch forgot to address object constraints.
-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'}