mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 10:11:46 +00:00
Fix hiding annotation objects without repr on drawing activation
This commit is contained in:
@@ -1734,7 +1734,9 @@ class Drawing(blenderbim.core.tool.Drawing):
|
|||||||
has_context = True
|
has_context = True
|
||||||
break
|
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_set(True)
|
||||||
obj.hide_render = True
|
obj.hide_render = True
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user