Revert "Reintroduce https://github.com/IfcOpenShell/IfcOpenShell/issues/7133 : Add hide_render synchronization to isolate_objects so hidden viewport objects are also hidden from render"

This reverts commit 23c60b38fd.
This commit is contained in:
Dion Moult
2025-10-11 18:09:52 +11:00
parent 23c60b38fd
commit 9c1f636cd4
+2 -16
View File
@@ -1877,25 +1877,11 @@ class Blender(bonsai.core.tool.Blender):
bpy.ops.object.hide_view_clear(select=False)
bpy.ops.object.select_all(action="DESELECT")
# Ensure objs_to_show exists (alias for clarity)
objs_to_show = objs
# Show only these objects
for o in objs_to_show:
o.select_set(True)
o.hide_set(False) # Make visible in viewport
o.hide_render = False # Make visible in render
for obj in objs:
obj.select_set(True)
with bpy.context.temp_override(**override):
bpy.ops.object.hide_view_set(unselected=True)
# Also hide all others from render
for o in bpy.context.view_layer.objects:
if o not in objs_to_show:
o.hide_render = True
# Restore previous selection state
bpy.ops.object.select_all(action="DESELECT")
for name in previously_selected:
obj = bpy.data.objects.get(name)