diff --git a/src/examples/IfcParseExamples.cpp b/src/examples/IfcParseExamples.cpp index 61da2cdb9f..a4741d78e8 100644 --- a/src/examples/IfcParseExamples.cpp +++ b/src/examples/IfcParseExamples.cpp @@ -17,7 +17,7 @@ * * ********************************************************************************/ -#include "../ifcparse/IfcParse.h" +#include "../ifcparse/IfcFile.h" using namespace IfcSchema; diff --git a/src/ifcopenshell-python/ifcopenshell/geom/__init__.py b/src/ifcopenshell-python/ifcopenshell/geom/__init__.py index 36074f05de..2a0577f172 100644 --- a/src/ifcopenshell-python/ifcopenshell/geom/__init__.py +++ b/src/ifcopenshell-python/ifcopenshell/geom/__init__.py @@ -43,8 +43,7 @@ def create_shape(settings, inst): def iterate(settings, filename): it = iterator(settings, filename) - if not it.findContext(): return None - while True: - yield it.get() - if not it.next(): break - + if it.findContext(): + while True: + yield it.get() + if not it.next(): break