mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-17 22:11:36 +00:00
Fix boolean op style selection
This commit is contained in:
@@ -3237,10 +3237,10 @@ const IfcSchema::IfcRepresentationItem* IfcGeom::Kernel::find_item_carrying_styl
|
|||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (item->declaration().is(IfcSchema::IfcBooleanClippingResult::Class())) {
|
while (item->declaration().is(IfcSchema::IfcBooleanResult::Class())) {
|
||||||
// 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 = (IfcSchema::IfcGeometricRepresentationItem*) ((IfcSchema::IfcBooleanResult*) item)->FirstOperand();
|
||||||
if (item->StyledByItem()->size()) {
|
if (item->StyledByItem()->size()) {
|
||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user