Fix #1801. Fix bug where importing multiple assets sharing an already imported material fails.

This commit is contained in:
Dion Moult
2021-10-16 15:46:02 +11:00
parent 23be5858b5
commit 516503b9ca
4 changed files with 123 additions and 5 deletions
+5
View File
@@ -302,6 +302,11 @@ def prop_is_value(prop, value):
assert False, f"Value is {actual_value}"
@then(parsers.parse('the object "{name}" has the material "{material}"'))
def the_object_name_is_in_the_collection_collection(name, material):
assert material 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]