mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-14 19:34:34 +00:00
Prevent double counting elements in single threaded mode
This commit is contained in:
@@ -584,7 +584,9 @@ namespace IfcGeom {
|
||||
// Increment the iterator over the list of products using the current
|
||||
// shape representation
|
||||
if (task_result_iterator_ == --all_processed_elements_.end()) {
|
||||
return create();
|
||||
if (!create()) {
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
task_result_iterator_++;
|
||||
|
||||
Reference in New Issue
Block a user