mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 02:23:34 +00:00
- Take better care of inverse cardinalities and respect more CoordinationView agreements in IfcOpenHouse
- Track inverse relationships in an IfcWrite context as well - Fix for lists of SELECT types
This commit is contained in:
@@ -33,7 +33,16 @@ IfcWritableEntity::~IfcWritableEntity() {
|
||||
delete _id;
|
||||
}
|
||||
int IfcWritableEntity::setId(int i) {
|
||||
return *(_id = new int(i > 0 ? i : file->FreshId()));
|
||||
if (i > 0) {
|
||||
delete _id;
|
||||
return *(_id = new int(i));
|
||||
} else {
|
||||
if (_id) { return *_id; }
|
||||
else {
|
||||
delete _id;
|
||||
return *(_id = new int(file->FreshId()));
|
||||
}
|
||||
}
|
||||
}
|
||||
IfcWritableEntity::IfcWritableEntity(IfcAbstractEntity* e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user