revert possible empty layer names in ui

This commit is contained in:
Andrej730
2025-01-27 17:35:34 +05:00
parent 605cf8d99a
commit 56af23b89f
@@ -38,7 +38,7 @@ class LoadLayers(bpy.types.Operator):
props.layers.clear()
for layer in tool.Ifc.get().by_type("IfcPresentationLayerAssignment"):
new = props.layers.add()
new.name = layer.Name
new.name = layer.Name or "Unnamed"
new.ifc_definition_id = layer.id()
if layer.is_a("IfcPresentationLayerWithStyle"):
new.with_style = True