Skip to content

Commit 1d319f7

Browse files
committed
Compilation fixes and python 2 compatibility. Thanks Yorik.
1 parent 9780c04 commit 1d319f7

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/examples/IfcParseExamples.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* *
1818
********************************************************************************/
1919

20-
#include "../ifcparse/IfcParse.h"
20+
#include "../ifcparse/IfcFile.h"
2121

2222
using namespace IfcSchema;
2323

src/ifcopenshell-python/ifcopenshell/geom/__init__.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ def create_shape(settings, inst):
4343

4444
def iterate(settings, filename):
4545
it = iterator(settings, filename)
46-
if not it.findContext(): return None
47-
while True:
48-
yield it.get()
49-
if not it.next(): break
50-
46+
if it.findContext():
47+
while True:
48+
yield it.get()
49+
if not it.next(): break

0 commit comments

Comments
 (0)