mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 06:21:40 +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):
|
def remove_old_connections(old_to_new):
|
||||||
for new in old_to_new.values():
|
for new in old_to_new.values():
|
||||||
|
if not hasattr(new[0], "ConnectedTo"):
|
||||||
|
continue
|
||||||
for connection in new[0].ConnectedTo:
|
for connection in new[0].ConnectedTo:
|
||||||
entity = connection.RelatedElement
|
entity = connection.RelatedElement
|
||||||
if entity in old_to_new.keys():
|
if entity in old_to_new.keys():
|
||||||
|
|||||||
Reference in New Issue
Block a user