mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 06:58:56 +00:00
Fix bug with TEXT annotations types showing up in TEXT_LEADER annotation types list
This commit is contained in:
@@ -214,7 +214,7 @@ class Drawing(bonsai.core.tool.Drawing):
|
|||||||
def is_annotation_object_type(
|
def is_annotation_object_type(
|
||||||
cls, element: ifcopenshell.entity_instance, object_types: Union[str, Sequence[str]]
|
cls, element: ifcopenshell.entity_instance, object_types: Union[str, Sequence[str]]
|
||||||
) -> bool:
|
) -> bool:
|
||||||
if not isinstance(object_types, collections.abc.Iterable):
|
if isinstance(object_types, str):
|
||||||
object_types = [object_types]
|
object_types = [object_types]
|
||||||
|
|
||||||
element_type = element.is_a()
|
element_type = element.is_a()
|
||||||
|
|||||||
Reference in New Issue
Block a user