Fix bug where demolition animations were not generated properly.

This commit is contained in:
Dion Moult
2021-09-20 18:03:43 +10:00
parent 94c009d179
commit 8fb218c335
3 changed files with 50 additions and 1 deletions
+5 -1
View File
@@ -103,7 +103,11 @@ def prop_is_value(prop, value):
exec(f"assert bpy.context.{prop} == {value}")
is_value = True
except:
pass
try:
exec(f"assert list(bpy.context.{prop}) == {value}")
is_value = True
except:
pass
if not is_value:
actual_value = eval(f"bpy.context.{prop}")
assert False, f"Value is {actual_value}"