mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-29 03:37:21 +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) {
|
} else if (inst->declaration().as_type_declaration() && i == 0) {
|
||||||
pt = inst->declaration().as_type_declaration()->declared_type();
|
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) {
|
if (pt == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user