From 0fffbac51970f5e0c7929b64c145fe4077fd8d0e Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Sun, 18 Jul 2021 09:26:37 +1000 Subject: [PATCH] Fix #1569. --- .../blenderbim/bim/module/geometry/ui.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/blenderbim/blenderbim/bim/module/geometry/ui.py b/src/blenderbim/blenderbim/bim/module/geometry/ui.py index 83f48fa6d0..0dd608b4e9 100644 --- a/src/blenderbim/blenderbim/bim/module/geometry/ui.py +++ b/src/blenderbim/blenderbim/bim/module/geometry/ui.py @@ -40,9 +40,8 @@ class BIM_PT_representations(Panel): row.label(text=representation["ContextOfItems"]["ContextIdentifier"]) row.label(text=representation["ContextOfItems"]["TargetView"]) row.label(text=representation["RepresentationType"]) - op = row.operator( - "bim.switch_representation", icon="OUTLINER_DATA_MESH", text="", should_switch_all_meshes=True - ) + op = row.operator("bim.switch_representation", icon="OUTLINER_DATA_MESH", text="") + op.should_switch_all_meshes = True op.should_reload = True op.ifc_definition_id = ifc_definition_id op.disable_opening_subtractions = False @@ -72,15 +71,13 @@ class BIM_PT_mesh(Panel): props = context.active_object.data.BIMMeshProperties row = layout.row(align=True) - op = row.operator( - "bim.switch_representation", text="Bake Voids", icon="SELECT_SUBTRACT", should_switch_all_meshes=True - ) + op = row.operator("bim.switch_representation", text="Bake Voids", icon="SELECT_SUBTRACT") + op.should_switch_all_meshes=True op.should_reload = True op.ifc_definition_id = props.ifc_definition_id op.disable_opening_subtractions = False - op = row.operator( - "bim.switch_representation", text="Dynamic Voids", icon="SELECT_INTERSECT", should_switch_all_meshes=True - ) + op = row.operator("bim.switch_representation", text="Dynamic Voids", icon="SELECT_INTERSECT") + op.should_switch_all_meshes=True op.should_reload = True op.ifc_definition_id = props.ifc_definition_id op.disable_opening_subtractions = True