We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 573655e commit b0ccf69Copy full SHA for b0ccf69
1 file changed
src/ifcparse/IfcParse.cpp
@@ -1117,6 +1117,7 @@ IfcUtil::IfcBaseClass* IfcFile::addEntity(IfcUtil::IfcBaseClass* entity) {
1117
} catch (...) {}
1118
for (IfcEntityList::it it = entity_attributes->begin(); it != entity_attributes->end(); ++it) {
1119
IfcUtil::IfcBaseClass* entity_attribute = *it;
1120
+ if (*it == entity) continue;
1121
try {
1122
if (!IfcSchema::Type::IsSimple(entity_attribute->type())) {
1123
unsigned entity_attribute_id = entity_attribute->entity->id();
0 commit comments