From e2e217700d68a89cde3e3a7c09ee13bd3c3ca66d Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Fri, 12 Jun 2020 11:18:30 +0200 Subject: [PATCH] #843 SetTransparency requires theToUpdateViewer --- src/ifcopenshell-python/ifcopenshell/geom/occ_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/geom/occ_utils.py b/src/ifcopenshell-python/ifcopenshell/geom/occ_utils.py index 0565f836fb..3f139b7d90 100644 --- a/src/ifcopenshell-python/ifcopenshell/geom/occ_utils.py +++ b/src/ifcopenshell-python/ifcopenshell/geom/occ_utils.py @@ -183,8 +183,8 @@ def display_shape(shape, clr=None, viewer_handle=None): return ais_handle -def set_shape_transparency(ais, t): - handle.Context.SetTransparency(ais, t) +def set_shape_transparency(ais, t, update_viewer=True): + handle.Context.SetTransparency(ais, t, update_viewer) def get_bounding_box_center(bbox):