Dont fail on missing AIS_MultipleConnectedShape in earlier versions of pyocc

This commit is contained in:
Thomas Krijnen
2018-05-17 15:54:12 +02:00
parent 6b772d18b8
commit fd821d08cd
@@ -133,7 +133,7 @@ def display_shape(shape, clr=None, viewer_handle=None):
if isinstance(clr, tuple) and len(clr) == 4 and clr[3] < 1.:
ais.SetTransparency(1. - clr[3])
elif representation:
elif representation and hasattr(OCC.AIS, "AIS_MultipleConnectedShape"):
default_style_applied = None
ais = OCC.AIS.AIS_MultipleConnectedShape(shape)