mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
@@ -268,10 +268,9 @@ class Geometry(bonsai.core.tool.Geometry):
|
|||||||
bonsai.core.system.remove_port(tool.Ifc, tool.System, port=port)
|
bonsai.core.system.remove_port(tool.Ifc, tool.System, port=port)
|
||||||
ifcopenshell.api.run("root.remove_product", tool.Ifc.get(), product=element)
|
ifcopenshell.api.run("root.remove_product", tool.Ifc.get(), product=element)
|
||||||
|
|
||||||
mesh = obj.data
|
data = obj.data
|
||||||
assert isinstance(mesh, bpy.types.Mesh)
|
if data and tool.Geometry.get_data_representation(data):
|
||||||
if not tool.Ifc.get_entity_by_id(tool.Geometry.get_mesh_props(mesh).ifc_definition_id):
|
tool.Blender.remove_data_block(data)
|
||||||
tool.Blender.remove_data_block(mesh)
|
|
||||||
|
|
||||||
if is_spatial:
|
if is_spatial:
|
||||||
bonsai.core.spatial.import_spatial_decomposition(tool.Spatial)
|
bonsai.core.spatial.import_spatial_decomposition(tool.Spatial)
|
||||||
|
|||||||
Reference in New Issue
Block a user