mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
Let users manually create automatic references too.
This commit is contained in:
@@ -487,7 +487,8 @@ def sync_references(
|
||||
continue
|
||||
if (obj := ifc.get_object(element)) and ifc.is_moved(obj):
|
||||
drawing_tool.sync_object_placement(obj)
|
||||
reference_element = drawing_tool.get_assigned_product(element)
|
||||
if not (reference_element := drawing_tool.get_assigned_product(element)):
|
||||
continue
|
||||
reference_obj = ifc.get_object(reference_element)
|
||||
if reference_element not in potential_reference_elements:
|
||||
# It was auto created, so it makes sense to auto delete
|
||||
|
||||
Reference in New Issue
Block a user