python: fix automesh type detection

Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
pull/110/head
Thorsten Liebig 2023-03-05 20:33:07 +01:00
parent 704fad6dc4
commit cb63ab01c4
1 changed files with 2 additions and 2 deletions

View File

@ -25,9 +25,9 @@ def mesh_combine(mesh1, mesh2, sort=True):
return mesh return mesh
def mesh_hint_from_primitive(primitive, dirs, **kw): def mesh_hint_from_primitive(primitive, dirs, **kw):
if primitive.GetType() is CSPrimitives.POINT: if primitive.GetType() == CSPrimitives.POINT:
return mesh_hint_from_point(primitive, dirs, **kw) return mesh_hint_from_point(primitive, dirs, **kw)
if primitive.GetType() is CSPrimitives.BOX: if primitive.GetType() == CSPrimitives.BOX:
return mesh_hint_from_box(primitive, dirs, **kw) return mesh_hint_from_box(primitive, dirs, **kw)
else: else:
return None return None