mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 11:18:18 +00:00
revert possible empty layer names in ui
This commit is contained in:
@@ -38,7 +38,7 @@ class LoadLayers(bpy.types.Operator):
|
|||||||
props.layers.clear()
|
props.layers.clear()
|
||||||
for layer in tool.Ifc.get().by_type("IfcPresentationLayerAssignment"):
|
for layer in tool.Ifc.get().by_type("IfcPresentationLayerAssignment"):
|
||||||
new = props.layers.add()
|
new = props.layers.add()
|
||||||
new.name = layer.Name
|
new.name = layer.Name or "Unnamed"
|
||||||
new.ifc_definition_id = layer.id()
|
new.ifc_definition_id = layer.id()
|
||||||
if layer.is_a("IfcPresentationLayerWithStyle"):
|
if layer.is_a("IfcPresentationLayerWithStyle"):
|
||||||
new.with_style = True
|
new.with_style = True
|
||||||
|
|||||||
Reference in New Issue
Block a user