mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 14:48:02 +00:00
Fix missing schema identifier in geometry function
This commit is contained in:
@@ -187,13 +187,13 @@ def make_shape_function(fn):
|
|||||||
if has_occ:
|
if has_occ:
|
||||||
import OCC.TopoDS
|
import OCC.TopoDS
|
||||||
|
|
||||||
def _(string_or_shape, *args):
|
def _(schema, string_or_shape, *args):
|
||||||
if isinstance(string_or_shape, OCC.TopoDS.TopoDS_Shape):
|
if isinstance(string_or_shape, OCC.TopoDS.TopoDS_Shape):
|
||||||
string_or_shape = utils.serialize_shape(string_or_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:
|
else:
|
||||||
def _(string, *args):
|
def _(schema, string, *args):
|
||||||
return entity_instance_or_none(fn(string, *args))
|
return entity_instance_or_none(fn(schema, string, *args))
|
||||||
return _
|
return _
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user