Psets and qtos are now only created when properties exist to prevent invalid IFCs.

This commit is contained in:
Dion Moult
2023-03-19 14:49:31 +11:00
parent bcc399b842
commit 558aff72a0
5 changed files with 118 additions and 86 deletions
+2 -2
View File
@@ -251,7 +251,7 @@ def i_set_prop_to_value(prop, value):
try:
eval(f"bpy.context.{prop}")
except:
assert False, "Property does not exist"
assert False, f"Property {prop} does not exist when trying to set to value {value}"
try:
exec(f'bpy.context.{prop} = r"{value}"')
except:
@@ -264,7 +264,7 @@ def i_set_prop_to_value(prop):
try:
eval(f"bpy.context.{prop}")
except:
assert False, "Property does not exist"
assert False, f"Property {prop} does not exist"
try:
exec(f'bpy.context.{prop} = r""')
except: