See 0028fd3. Fix regression when duplicating objects without connections.

This commit is contained in:
Dion Moult
2024-01-23 09:04:44 +11:00
parent 8ba68d0f0b
commit 2308538735
@@ -872,6 +872,8 @@ class OverrideDuplicateMove(bpy.types.Operator):
def remove_old_connections(old_to_new):
for new in old_to_new.values():
if not hasattr(new[0], "ConnectedTo"):
continue
for connection in new[0].ConnectedTo:
entity = connection.RelatedElement
if entity in old_to_new.keys():