mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 10:33:20 +00:00
Catch errors in the processing of lists of shapes
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
#include "IfcRegisterUndef.h"
|
||||
#define SHAPES(T) \
|
||||
if ( l->is(T::Class()) ) { \
|
||||
return IfcGeom::convert((T*)l,r); \
|
||||
try { \
|
||||
return IfcGeom::convert((T*)l,r); \
|
||||
} catch (...) { } \
|
||||
Ifc::LogMessage("Error","Failed to convert:",l->entity); \
|
||||
return false; \
|
||||
}
|
||||
#include "IfcRegisterDef.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user