From 67a17ddd1ba1e8ef40b52813c16985de1e7f2518 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Mon, 25 Mar 2024 14:44:51 +0500 Subject: [PATCH] Fix hiding annotation objects without repr on drawing activation --- src/blenderbim/blenderbim/tool/drawing.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/blenderbim/blenderbim/tool/drawing.py b/src/blenderbim/blenderbim/tool/drawing.py index 74b74c6e0b7..516dacd06a6 100644 --- a/src/blenderbim/blenderbim/tool/drawing.py +++ b/src/blenderbim/blenderbim/tool/drawing.py @@ -1734,7 +1734,9 @@ def activate_drawing(cls, camera): has_context = True break - if not has_context: + # don't hide IfcAnnotations as some of them might exist without representations + # e.g. with ObjectType = SYMBOL + if not has_context and not element.is_a("IfcAnnotation"): obj.hide_set(True) obj.hide_render = True