From 03da7bc6e4b14ab9c7a41ed520761aeb39d61aa6 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Wed, 5 Sep 2018 14:43:25 +0200 Subject: [PATCH] Fix missing schema identifier in geometry function --- src/ifcopenshell-python/ifcopenshell/geom/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/geom/main.py b/src/ifcopenshell-python/ifcopenshell/geom/main.py index 1f4e18cb42..a73800b915 100644 --- a/src/ifcopenshell-python/ifcopenshell/geom/main.py +++ b/src/ifcopenshell-python/ifcopenshell/geom/main.py @@ -187,13 +187,13 @@ def make_shape_function(fn): if has_occ: import OCC.TopoDS - def _(string_or_shape, *args): + def _(schema, string_or_shape, *args): if isinstance(string_or_shape, OCC.TopoDS.TopoDS_Shape): string_or_shape = utils.serialize_shape(string_or_shape) - return entity_instance_or_none(fn(string_or_shape, *args)) + return entity_instance_or_none(fn(schema, string_or_shape, *args)) else: - def _(string, *args): - return entity_instance_or_none(fn(string, *args)) + def _(schema, string, *args): + return entity_instance_or_none(fn(schema, string, *args)) return _