mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 19:07:57 +00:00
Handle boxed enum creation in Python
This commit is contained in:
@@ -68,6 +68,9 @@ static IfcUtil::ArgumentType helper_fn_attribute_type(const IfcUtil::IfcBaseClas
|
||||
}
|
||||
} else if (inst->declaration().as_type_declaration() && i == 0) {
|
||||
pt = inst->declaration().as_type_declaration()->declared_type();
|
||||
} else if (inst->declaration().as_enumeration_type() && i == 0) {
|
||||
// Enumeration is always from string in Python
|
||||
return IfcUtil::Argument_STRING;
|
||||
}
|
||||
|
||||
if (pt == 0) {
|
||||
|
||||
Reference in New Issue
Block a user