mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Fix bugs in 17642ca4e9
This commit is contained in:
@@ -50,4 +50,5 @@ def unassign_unit(file: ifcopenshell.file, units: Optional[list[ifcopenshell.ent
|
||||
units_set = units_set - set(units or [])
|
||||
if units_set:
|
||||
unit_assignment.Units = list(units_set)
|
||||
return
|
||||
file.remove(unit_assignment)
|
||||
|
||||
Reference in New Issue
Block a user