mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-12 06:32:09 +00:00
remove bim.update_current_style poll
as this operator can be executed without any objects selected
This commit is contained in:
@@ -161,13 +161,6 @@ class UpdateCurrentStyle(bpy.types.Operator):
|
|||||||
update_all: bpy.props.BoolProperty(name="Update All", default=False, options={"SKIP_SAVE"})
|
update_all: bpy.props.BoolProperty(name="Update All", default=False, options={"SKIP_SAVE"})
|
||||||
style_id: bpy.props.IntProperty(default=0, 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):
|
def invoke(self, context, event):
|
||||||
# updating all styles on shift+click
|
# updating all styles on shift+click
|
||||||
# make sure to use SKIP_SAVE on property, otherwise it might get stuck
|
# make sure to use SKIP_SAVE on property, otherwise it might get stuck
|
||||||
|
|||||||
Reference in New Issue
Block a user