mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 21:42:19 +00:00
Don't log 'no op defined' for failed conversions
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
#define BIND(T) \
|
#define BIND(T) \
|
||||||
if (!item && inst->as<IfcSchema::T>()) { \
|
if (!item && inst->as<IfcSchema::T>()) { \
|
||||||
|
matched = true; \
|
||||||
try { \
|
try { \
|
||||||
item = map_impl(inst->as<IfcSchema::T>()); \
|
item = map_impl(inst->as<IfcSchema::T>()); \
|
||||||
if (item != nullptr) { \
|
if (item != nullptr) { \
|
||||||
|
|||||||
@@ -547,12 +547,15 @@ taxonomy::ptr mapping::map(const IfcBaseInterface* inst) {
|
|||||||
// of if-statements and whether a switch on e.g inst->declaration()->index_in_schema()
|
// of if-statements and whether a switch on e.g inst->declaration()->index_in_schema()
|
||||||
// isn't more efficient (which would disable inheritance though).
|
// isn't more efficient (which would disable inheritance though).
|
||||||
|
|
||||||
|
bool matched = false;
|
||||||
|
|
||||||
#include "bind_convert_impl.i"
|
#include "bind_convert_impl.i"
|
||||||
|
|
||||||
if (use_caching_ && item) {
|
if (item) {
|
||||||
cache_.insert({ iden, item });
|
if (use_caching_) {
|
||||||
}
|
cache_.insert({ iden, item });
|
||||||
else {
|
}
|
||||||
|
} else if (!matched) {
|
||||||
Logger::Message(Logger::LOG_ERROR, "No operation defined for:", inst);
|
Logger::Message(Logger::LOG_ERROR, "No operation defined for:", inst);
|
||||||
}
|
}
|
||||||
return item;
|
return item;
|
||||||
|
|||||||
Reference in New Issue
Block a user