mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
small fix for 1aaccba80
This commit is contained in:
@@ -492,7 +492,7 @@ class Blender(blenderbim.core.tool.Blender):
|
||||
index = props.get(prop_name)
|
||||
# If value was never changed (still default), we can just retrieve it from the enum.
|
||||
if index is None:
|
||||
default_value = prop_keywords.get("default")
|
||||
default_value = prop_keywords.get("default", 0)
|
||||
if isinstance(default_value, int):
|
||||
index = default_value
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user