mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
Address old merge issue regarding style lookup #5069
This commit is contained in:
@@ -341,10 +341,10 @@ namespace {
|
|||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (item->declaration().is(IfcSchema::IfcBooleanClippingResult::Class())) {
|
while (auto booleanresult = item->as<IfcSchema::IfcBooleanClippingResult>()) {
|
||||||
// All instantiations of IfcBooleanOperand (type of FirstOperand) are subtypes of
|
// All instantiations of IfcBooleanOperand (type of FirstOperand) are subtypes of
|
||||||
// IfcGeometricRepresentationItem
|
// IfcGeometricRepresentationItem
|
||||||
item = (IfcSchema::IfcGeometricRepresentationItem*) ((IfcSchema::IfcBooleanClippingResult*) item)->FirstOperand();
|
item = booleanresult->FirstOperand()->as<IfcSchema::IfcRepresentationItem>();
|
||||||
if (item->StyledByItem()->size()) {
|
if (item->StyledByItem()->size()) {
|
||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user