mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 05:17:58 +00:00
Compilation fixes and python 2 compatibility. Thanks Yorik.
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
* *
|
* *
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
#include "../ifcparse/IfcParse.h"
|
#include "../ifcparse/IfcFile.h"
|
||||||
|
|
||||||
using namespace IfcSchema;
|
using namespace IfcSchema;
|
||||||
|
|
||||||
|
|||||||
@@ -43,8 +43,7 @@ def create_shape(settings, inst):
|
|||||||
|
|
||||||
def iterate(settings, filename):
|
def iterate(settings, filename):
|
||||||
it = iterator(settings, filename)
|
it = iterator(settings, filename)
|
||||||
if not it.findContext(): return None
|
if it.findContext():
|
||||||
while True:
|
while True:
|
||||||
yield it.get()
|
yield it.get()
|
||||||
if not it.next(): break
|
if not it.next(): break
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user