mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Default to 2x3 for older schemas
This commit is contained in:
@@ -1328,6 +1328,11 @@ void IfcFile::initialize_(IfcParse::IfcSpfStream* s) {
|
||||
} catch (const IfcParse::IfcException& e) {
|
||||
Logger::Error(e);
|
||||
}
|
||||
|
||||
if (schema_ == 0 && schemas.front().substr(0, 4) == "IFC2") {
|
||||
Logger::Message(Logger::LOG_ERROR, schemas.front() + " not supported, using IFC2X3 instead");
|
||||
schema_ = IfcParse::schema_by_name("IFC2X3");
|
||||
}
|
||||
}
|
||||
|
||||
if (schema_ == 0) {
|
||||
|
||||
Reference in New Issue
Block a user