From ee4e92dfa3f8adc0f788fe1f1840d38442ff96d2 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Mon, 3 Jun 2024 16:07:39 +0500 Subject: [PATCH] remove bim.update_current_style poll as this operator can be executed without any objects selected --- src/blenderbim/blenderbim/bim/module/style/operator.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/blenderbim/blenderbim/bim/module/style/operator.py b/src/blenderbim/blenderbim/bim/module/style/operator.py index cf36eee95e..10af6dfd95 100644 --- a/src/blenderbim/blenderbim/bim/module/style/operator.py +++ b/src/blenderbim/blenderbim/bim/module/style/operator.py @@ -161,13 +161,6 @@ class UpdateCurrentStyle(bpy.types.Operator): update_all: bpy.props.BoolProperty(name="Update All", default=False, options={"SKIP_SAVE"}) style_id: bpy.props.IntProperty(default=0, options={"SKIP_SAVE"}) - @classmethod - def poll(cls, context): - if not context.selected_objects: - cls.poll_message_set("No objects selected") - return False - return True - def invoke(self, context, event): # updating all styles on shift+click # make sure to use SKIP_SAVE on property, otherwise it might get stuck