mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 21:42:19 +00:00
Fix #4189. Hidden or non-isolated objects now don't show annotations.
This commit is contained in:
@@ -1949,9 +1949,10 @@ class DecorationsHandler:
|
|||||||
def get_objects_and_decorators(self, collection):
|
def get_objects_and_decorators(self, collection):
|
||||||
# TODO: do it in data instead of the handler for performance?
|
# TODO: do it in data instead of the handler for performance?
|
||||||
results = []
|
results = []
|
||||||
|
viewport = bpy.context.space_data
|
||||||
|
|
||||||
for obj in collection.all_objects:
|
for obj in collection.all_objects:
|
||||||
if obj.hide_get():
|
if not obj.visible_get(viewport=viewport):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
element = tool.Ifc.get_entity(obj)
|
element = tool.Ifc.get_entity(obj)
|
||||||
|
|||||||
Reference in New Issue
Block a user