python: fix automesh type detection
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>pull/110/head
parent
704fad6dc4
commit
cb63ab01c4
|
@ -25,9 +25,9 @@ def mesh_combine(mesh1, mesh2, sort=True):
|
|||
return mesh
|
||||
|
||||
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)
|
||||
if primitive.GetType() is CSPrimitives.BOX:
|
||||
if primitive.GetType() == CSPrimitives.BOX:
|
||||
return mesh_hint_from_box(primitive, dirs, **kw)
|
||||
else:
|
||||
return None
|
||||
|
|
Loading…
Reference in New Issue