Fix #1645. Fix bug where you could accidentally have a layer set with zero thickness which caused object creation to fail.

This commit is contained in:
Dion Moult
2021-08-14 15:09:19 +10:00
parent 58921e200c
commit 0ce35466ff
3 changed files with 3 additions and 3 deletions
@@ -9,7 +9,7 @@ class Usecase:
layers = list(self.settings["layer_set"].MaterialLayers or [])
layer = self.file.create_entity("IfcMaterialLayer", **{
"Material": self.settings["material"],
"LayerThickness": 0.
"LayerThickness": 1.
})
layers.append(layer)
self.settings["layer_set"].MaterialLayers = layers