mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-17 14:02:27 +00:00
Dont fail on missing AIS_MultipleConnectedShape in earlier versions of pyocc
This commit is contained in:
@@ -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.:
|
if isinstance(clr, tuple) and len(clr) == 4 and clr[3] < 1.:
|
||||||
ais.SetTransparency(1. - clr[3])
|
ais.SetTransparency(1. - clr[3])
|
||||||
|
|
||||||
elif representation:
|
elif representation and hasattr(OCC.AIS, "AIS_MultipleConnectedShape"):
|
||||||
default_style_applied = None
|
default_style_applied = None
|
||||||
|
|
||||||
ais = OCC.AIS.AIS_MultipleConnectedShape(shape)
|
ais = OCC.AIS.AIS_MultipleConnectedShape(shape)
|
||||||
|
|||||||
Reference in New Issue
Block a user