mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-30 03:59:55 +00:00
Fix IfcTester bug which did not consider null enumeration values
This commit is contained in:
@@ -555,6 +555,10 @@ class Property(Facet):
|
|||||||
ifcopenshell.util.unit.si_type_names[unit.UnitType],
|
ifcopenshell.util.unit.si_type_names[unit.UnitType],
|
||||||
)
|
)
|
||||||
elif prop_entity.is_a("IfcPropertyEnumeratedValue"):
|
elif prop_entity.is_a("IfcPropertyEnumeratedValue"):
|
||||||
|
if not prop_entity.EnumerationValues:
|
||||||
|
is_pass = False
|
||||||
|
reason = {"type": "NOVALUE"}
|
||||||
|
break
|
||||||
data_type = prop_entity.EnumerationValues[0].is_a()
|
data_type = prop_entity.EnumerationValues[0].is_a()
|
||||||
if data_type != self.measure:
|
if data_type != self.measure:
|
||||||
is_pass = False
|
is_pass = False
|
||||||
|
|||||||
Reference in New Issue
Block a user