From 04e84f7aed32c07a3b7bb407c45c8f67806690a4 Mon Sep 17 00:00:00 2001 From: Stephen Boddy Date: Wed, 20 Nov 2024 11:20:56 +0000 Subject: [PATCH] Fix #5770 so sheet subitems can be opened using svg command too, not just the main sheet. I was a little overzealous adding poll methods in 099703f --- src/bonsai/bonsai/bim/module/drawing/operator.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/bonsai/bonsai/bim/module/drawing/operator.py b/src/bonsai/bonsai/bim/module/drawing/operator.py index 4f671c8e10..4f4dc992f5 100644 --- a/src/bonsai/bonsai/bim/module/drawing/operator.py +++ b/src/bonsai/bonsai/bim/module/drawing/operator.py @@ -1503,15 +1503,6 @@ class OpenLayout(bpy.types.Operator, tool.Ifc.Operator): ) bl_options = {"REGISTER", "UNDO"} - @classmethod - def poll(cls, context): - props = context.scene.DocProperties - active_sheet = props.sheets[props.active_sheet_index] - if not active_sheet.is_sheet: - cls.poll_message_set("No sheet selected.") - return False - return True - def _execute(self, context): self.props = context.scene.DocProperties sheet = tool.Ifc.get().by_id(self.props.sheets[self.props.active_sheet_index].ifc_definition_id)