Don't use cached items in multi-threaded mode for now until we have proper immutability

This commit is contained in:
Thomas Krijnen
2024-06-11 11:20:40 +02:00
parent aa0fbd434e
commit c2efcda7bb
3 changed files with 15 additions and 4 deletions
+4
View File
@@ -171,6 +171,10 @@ namespace IfcGeom {
converter_ = new ifcopenshell::geometry::Converter(geometry_library_, ifc_file, settings_);
std::vector<ifcopenshell::geometry::geometry_conversion_task> reps;
if (num_threads_ != 1) {
// @todo this shouldn't be necessary with properly immutable taxonomy items
converter_->mapping()->use_caching() = false;
}
converter_->mapping()->get_representations(reps, filters_);
for (auto& task : reps) {