mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-12 14:33:28 +00:00
Psets and qtos are now only created when properties exist to prevent invalid IFCs.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user