Fix #4092. Minor bug with bad detection of text literals when switching geometry.

This commit is contained in:
Dion Moult
2023-12-08 14:03:46 +11:00
parent 2df5b4c70e
commit dbb9e8c907
+2 -1
View File
@@ -588,7 +588,8 @@ class Geometry(blenderbim.core.tool.Geometry):
@classmethod
def is_text_literal(cls, representation):
return bool([i for i in representation.Items if i.is_a("IfcTextLiteral")])
items = ifcopenshell.util.representation.resolve_items(representation)
return bool([i for i in items if i["item"].is_a("IfcTextLiteral")])
@classmethod
def is_type_product(cls, element):