Use boolean property type.
This commit is contained in:
parent
8669e1301f
commit
d07c9eba2e
2
source/external/ifcimporter.js
vendored
2
source/external/ifcimporter.js
vendored
@ -141,7 +141,7 @@ OV.ImporterIfc = class extends OV.ImporterBase
|
||||
meshProperty = new OV.Property (OV.PropertyType.Text, property.Name.value, property.NominalValue.value);
|
||||
} else if (property.NominalValue.label === 'IFCBOOLEAN') {
|
||||
// TODO: bool property type
|
||||
meshProperty = new OV.Property (OV.PropertyType.Text, property.Name.value, property.NominalValue.value === 'T' ? 'Yes' : 'No');
|
||||
meshProperty = new OV.Property (OV.PropertyType.Boolean, property.Name.value, property.NominalValue.value === 'T' ? true : false);
|
||||
}
|
||||
if (meshProperty !== null) {
|
||||
propertyGroup.AddProperty (meshProperty);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user