Don't emit empty results for representation and allow implicit items to

pass when using --plan
This commit is contained in:
Thomas Krijnen
2023-11-21 14:40:50 +01:00
parent dc6eb8611a
commit b52c5ab082
2 changed files with 13 additions and 9 deletions
+5 -7
View File
@@ -236,14 +236,12 @@ void mapping::get_representations(std::vector<geometry_conversion_task>& tasks,
}
// @todo, fix this properly by considering the mapped geometry types in the representation.
if (representation->RepresentationIdentifier() && *representation->RepresentationIdentifier() == "Body") {
geometry_conversion_task task;
task.index = task_index++;
task.representation = representation;
task.products = ifcproducts->generalize();
geometry_conversion_task task;
task.index = task_index++;
task.representation = representation;
task.products = ifcproducts->generalize();
tasks.emplace_back(task);
}
tasks.emplace_back(task);
}
}