mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
See 0028fd3. Fix regression when duplicating objects without connections.
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user