mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 15:08:51 +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)
|
index = props.get(prop_name)
|
||||||
# If value was never changed (still default), we can just retrieve it from the enum.
|
# If value was never changed (still default), we can just retrieve it from the enum.
|
||||||
if index is None:
|
if index is None:
|
||||||
default_value = prop_keywords.get("default")
|
default_value = prop_keywords.get("default", 0)
|
||||||
if isinstance(default_value, int):
|
if isinstance(default_value, int):
|
||||||
index = default_value
|
index = default_value
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user