mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 10:11:46 +00:00
Fix #2599. Unassigning materials now also removes the Blender material.
This commit is contained in:
@@ -498,6 +498,11 @@ def the_object_name_has_the_material_material(name, material):
|
||||
assert material in [ms.material.name for ms in the_object_name_exists(name).material_slots]
|
||||
|
||||
|
||||
@then(parsers.parse('the object "{name}" does not have the material "{material}"'))
|
||||
def the_object_name_does_not_have_the_material_material(name, material):
|
||||
assert material not in [ms.material.name for ms in the_object_name_exists(name).material_slots]
|
||||
|
||||
|
||||
@then(parsers.parse('the object "{name}" is in the collection "{collection}"'))
|
||||
def the_object_name_is_in_the_collection_collection(name, collection):
|
||||
assert collection in [c.name for c in the_object_name_exists(name).users_collection]
|
||||
|
||||
Reference in New Issue
Block a user