From b5ff3cd8188ab937436bc522571a00d7ffc136c8 Mon Sep 17 00:00:00 2001 From: Gorgious Date: Thu, 19 Aug 2021 22:31:29 +0200 Subject: [PATCH] Fix error due to typo --- .../ifcopenshell/api/style/assign_material_style.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/api/style/assign_material_style.py b/src/ifcopenshell-python/ifcopenshell/api/style/assign_material_style.py index b626740cde..a00b623ea5 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/style/assign_material_style.py +++ b/src/ifcopenshell-python/ifcopenshell/api/style/assign_material_style.py @@ -63,7 +63,7 @@ class Usecase: def get_styled_representation(self, definition_representation): representations = [ r - for r in definition_representation.Representations is r.is_a("IfcStyledRepresentation") + for r in definition_representation.Representations if r.is_a("IfcStyledRepresentation") and r.ContextOfItems == self.settings["context"] ] if representations: