Fix bug with TEXT annotations types showing up in TEXT_LEADER annotation types list

This commit is contained in:
Andrej730
2024-11-20 16:27:46 +05:00
parent 2381e9e4e6
commit 610665d732
+1 -1
View File
@@ -214,7 +214,7 @@ class Drawing(bonsai.core.tool.Drawing):
def is_annotation_object_type(
cls, element: ifcopenshell.entity_instance, object_types: Union[str, Sequence[str]]
) -> bool:
if not isinstance(object_types, collections.abc.Iterable):
if isinstance(object_types, str):
object_types = [object_types]
element_type = element.is_a()