diff options
author | Demeter Dzadik <demeter@blender.studio> | 2021-08-25 14:05:08 +0300 |
---|---|---|
committer | Demeter Dzadik <demeter@blender.studio> | 2021-08-25 14:05:10 +0300 |
commit | b701b514de3671376de790358b2562214b964895 (patch) | |
tree | bbb12965d94efb0b660dcb437068bfd38c4904e6 | |
parent | fe12f8b97589baf56bf02a53cd73fc495a89909f (diff) |
Same change as in D8422, that patch forgot to address object constraints.
-rw-r--r-- | space_view3d_copy_attributes.py | 6 |
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'} |