Fix adding void if object has no layer material usage after #7010 #7019

This commit is contained in:
falken10vdl
2025-08-12 13:42:48 +02:00
committed by GitHub
parent a6a27442fb
commit 8c5830ddab
@@ -644,6 +644,8 @@ class AddElement(bpy.types.Operator, tool.Ifc.Operator):
position_x_axis=tuple(local_x),
position_z_axis=z_axis,
)
else:
item = builder.extrude(curve, magnitude=0.5 / unit_scale)
representation = builder.get_representation(ifc_context, [item])
ifcopenshell.api.geometry.assign_representation(tool.Ifc.get(), element, representation)