mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
Reduce log noise on materials without styles #7947
This commit is contained in:
@@ -578,6 +578,7 @@ taxonomy::ptr mapping::map_impl(const IfcSchema::IfcMaterial& material) {
|
||||
}
|
||||
// Check if it's failed or just some unsupported case.
|
||||
if (failed_on_purpose_.find(styled_item) == failed_on_purpose_.end()) {
|
||||
failed_on_purpose_.insert(material);
|
||||
return nullptr;
|
||||
}
|
||||
logger::warning("Skipping unsupported material style for material: ", material);
|
||||
@@ -585,6 +586,7 @@ taxonomy::ptr mapping::map_impl(const IfcSchema::IfcMaterial& material) {
|
||||
}
|
||||
|
||||
// When material does not have a representation we don't create a style from it
|
||||
failed_on_purpose_.insert(material);
|
||||
return nullptr;
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user