From 3343f3fb353add4e4038daf0e2d4a76dc07b762c Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Mon, 13 Oct 2025 07:49:07 +1100 Subject: [PATCH] Revert "Closes #7229: Unhide object before mesh tessellation export to prevent "Cannot edit hidden object" error when collector.assign() hides the object." This reverts commit 96d05300bbf89aea685915f8252e4e8e2f9faf9b. --- src/bonsai/bonsai/bim/module/root/operator.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/bonsai/bonsai/bim/module/root/operator.py b/src/bonsai/bonsai/bim/module/root/operator.py index 9044e0d271..55ffa56a79 100644 --- a/src/bonsai/bonsai/bim/module/root/operator.py +++ b/src/bonsai/bonsai/bim/module/root/operator.py @@ -326,10 +326,6 @@ class AssignClass(bpy.types.Operator, tool.Ifc.Operator): predefined_type=predefined_type, should_add_representation=False, ) - - #Unhide object before mesh tessellation export to prevent "Cannot edit hidden object" error when collector.assign() hides the object. - obj.hide_viewport = False - representation = tool.Geometry.export_mesh_to_tessellation(obj, ifc_context) ifcopenshell.api.geometry.assign_representation(tool.Ifc.get(), element, representation) bonsai.core.geometry.switch_representation(