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 c3ded31a6a
commit dda803df2e
@@ -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():