mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +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:
|
||||
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 _
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user