Fix #4490. Fix fundamental bug where get_pset would return none for inherited props with a boolean False value.

This commit is contained in:
Dion Moult
2024-04-10 12:57:52 +10:00
parent f5c5fba151
commit bee1e21f0e
3 changed files with 6 additions and 3 deletions
@@ -93,13 +93,13 @@ def get_pset(
elif qtos_only and not pset.is_a("IfcElementQuantity"):
pset = None
if type_pset:
if type_pset is not None:
if psets_only and not type_pset.is_a("IfcPropertySet"):
type_pset = None
elif qtos_only and not type_pset.is_a("IfcElementQuantity"):
type_pset = None
if not pset and not type_pset:
if not pset and type_pset is None:
return
if not prop: