diff --git a/src/ifcopenshell-python/ifcopenshell/geom/occ_utils.py b/src/ifcopenshell-python/ifcopenshell/geom/occ_utils.py index aa596143d7..e8ec739f94 100644 --- a/src/ifcopenshell-python/ifcopenshell/geom/occ_utils.py +++ b/src/ifcopenshell-python/ifcopenshell/geom/occ_utils.py @@ -86,7 +86,7 @@ def display_shape(shape, clr=None, viewer_handle=None): if isinstance(shape, shape_tuple): shape, representation = shape.geometry, shape - else: representation is None + else: representation = None material = OCC.Graphic3d.Graphic3d_MaterialAspect(OCC.Graphic3d.Graphic3d_NOM_PLASTER) material.SetDiffuse(1)