mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 07:52:37 +00:00
Fix left out invalid mesh data blocks and fix failing geom core test (after fcee54c)
This commit is contained in:
@@ -1194,6 +1194,11 @@ def the_material_name_does_not_exist(name):
|
||||
assert bpy.data.materials.get(name) is None, "Material exists"
|
||||
|
||||
|
||||
@then(parsers.parse('the mesh "{name}" does not exist'))
|
||||
def the_mesh_name_does_not_exist(name: str) -> None:
|
||||
assert bpy.data.meshes.get(name) is None, f"Mesh '{name}' exists"
|
||||
|
||||
|
||||
def get_ifc_material_by_name(name: str) -> Union[ifcopenshell.entity_instance, None]:
|
||||
ifc_file = tool.Ifc.get()
|
||||
material = next((m for m in ifc_file.by_type("IfcMaterial") if m.Name == name), None)
|
||||
|
||||
Reference in New Issue
Block a user