mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +00:00
Fix #4092. Minor bug with bad detection of text literals when switching geometry.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user