mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 03:05:33 +00:00
Fix build when USE_IFC4=1 (#160)
This commit is contained in:
committed by
Thomas Krijnen
parent
5c107eb165
commit
aec20057c7
@@ -285,7 +285,13 @@ ptree& descend(IfcObjectDefinition* product, ptree& tree) {
|
|||||||
|
|
||||||
IfcRepresentationItem::list::ptr items = r->as<IfcRepresentationItem>();
|
IfcRepresentationItem::list::ptr items = r->as<IfcRepresentationItem>();
|
||||||
for (IfcRepresentationItem::list::it it = items->begin(); it != items->end(); ++it) {
|
for (IfcRepresentationItem::list::it it = items->begin(); it != items->end(); ++it) {
|
||||||
IfcPresentationLayerAssignment::list::ptr a = (*it)->LayerAssignments();
|
IfcPresentationLayerAssignment::list::ptr a = (*it)->
|
||||||
|
// LayerAssignments renamed from plural to singular, LayerAssignment, so work around that
|
||||||
|
#ifdef USE_IFC4
|
||||||
|
LayerAssignment();
|
||||||
|
#else
|
||||||
|
LayerAssignments();
|
||||||
|
#endif
|
||||||
for (IfcPresentationLayerAssignment::list::it jt = a->begin(); jt != a->end(); ++jt) {
|
for (IfcPresentationLayerAssignment::list::it jt = a->begin(); jt != a->end(); ++jt) {
|
||||||
layers[(*jt)->Name()] = *jt;
|
layers[(*jt)->Name()] = *jt;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user