mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-17 14:02:27 +00:00
Reduce log noise on materials without styles #7947
This commit is contained in:
@@ -562,6 +562,7 @@ taxonomy::ptr mapping::map_impl(const IfcSchema::IfcMaterial* material) {
|
|||||||
}
|
}
|
||||||
// Check if it's failed or just some unsupported case.
|
// Check if it's failed or just some unsupported case.
|
||||||
if (failed_on_purpose_.find(styled_item) == failed_on_purpose_.end()) {
|
if (failed_on_purpose_.find(styled_item) == failed_on_purpose_.end()) {
|
||||||
|
failed_on_purpose_.insert(material);
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
Logger::Warning("Skipping unsupported material style for material: ", material);
|
Logger::Warning("Skipping unsupported material style for material: ", material);
|
||||||
@@ -569,6 +570,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
|
// When material does not have a representation we don't create a style from it
|
||||||
|
failed_on_purpose_.insert(material);
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user