mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Fix bug where you couldn't add a meshlike object in a boolean hierarchy
This commit is contained in:
@@ -2933,9 +2933,9 @@ class AddMeshlikeItem(bpy.types.Operator, tool.Ifc.Operator):
|
||||
representation = tool.Geometry.get_active_representation(props.representation_obj)
|
||||
representation = ifcopenshell.util.representation.resolve_representation(representation)
|
||||
|
||||
if representation.RepresentationType in ("Brep", "AdvancedBrep"):
|
||||
if tool.Ifc.get().schema == "IFC2X3" or representation.RepresentationType in ("Brep", "AdvancedBrep"):
|
||||
item = builder.faceted_brep(verts, faces)
|
||||
elif representation.RepresentationType in ("Tessellation"):
|
||||
else:
|
||||
item = builder.mesh(verts, faces)
|
||||
|
||||
props.add_item_object(obj, item)
|
||||
|
||||
Reference in New Issue
Block a user