Fix #4189. Hidden or non-isolated objects now don't show annotations.

This commit is contained in:
Dion Moult
2024-01-10 12:29:43 +11:00
parent e79fb2ff0b
commit a33f30e8ce
@@ -1949,9 +1949,10 @@ class DecorationsHandler:
def get_objects_and_decorators(self, collection):
# TODO: do it in data instead of the handler for performance?
results = []
viewport = bpy.context.space_data
for obj in collection.all_objects:
if obj.hide_get():
if not obj.visible_get(viewport=viewport):
continue
element = tool.Ifc.get_entity(obj)