mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
fix set_element_value setting bool attributes with "False" str value
This commit is contained in:
@@ -419,7 +419,7 @@ def set_element_value(
|
||||
if value in ("True", "true", "TRUE", "Yes", "1"):
|
||||
value = True
|
||||
elif value in ("False", "false", "FALSE", "No", "0"):
|
||||
value = True
|
||||
value = False
|
||||
else:
|
||||
value = bool(value)
|
||||
return setattr(element, key, value)
|
||||
|
||||
Reference in New Issue
Block a user