Remove incorrect poll method from object.instance_offset_from_cursor

Remove poll method from the `OBJECT_OT_instance_offset_from_cursor`
operator. It was checking for `context.active_object`, but not even doing
anything with the active object. It'll get in the way of exposing this
operator in another area of the interface, though.
This commit is contained in:
Sybren A. Stüvel
2022-05-17 11:00:04 +02:00
parent c582a2dbd9
commit f752eaadbd

View File

@@ -848,10 +848,6 @@ class DupliOffsetFromCursor(Operator):
bl_label = "Set Offset from Cursor"
bl_options = {'INTERNAL', 'UNDO'}
@classmethod
def poll(cls, context):
return (context.active_object is not None)
def execute(self, context):
scene = context.scene
collection = context.collection