mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 06:58:56 +00:00
todo note re #1769
This commit is contained in:
@@ -2034,6 +2034,7 @@ void IfcFile::process_deletion_() {
|
|||||||
IfcWrite::IfcWriteArgument* copy = new IfcWrite::IfcWriteArgument();
|
IfcWrite::IfcWriteArgument* copy = new IfcWrite::IfcWriteArgument();
|
||||||
instance_list->remove(entity);
|
instance_list->remove(entity);
|
||||||
if (!instance_list->size() && related_instance->declaration().as_entity()->attribute_by_index(i)->optional()) {
|
if (!instance_list->size() && related_instance->declaration().as_entity()->attribute_by_index(i)->optional()) {
|
||||||
|
// @todo we can also check the lower bound of the attribute type before setting to null.
|
||||||
copy->set(boost::blank());
|
copy->set(boost::blank());
|
||||||
} else {
|
} else {
|
||||||
copy->set(instance_list);
|
copy->set(instance_list);
|
||||||
|
|||||||
Reference in New Issue
Block a user