mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 10:43:46 +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
|
@classmethod
|
||||||
def is_text_literal(cls, representation):
|
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
|
@classmethod
|
||||||
def is_type_product(cls, element):
|
def is_type_product(cls, element):
|
||||||
|
|||||||
Reference in New Issue
Block a user