diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2022-05-17 12:00:04 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2022-05-17 12:00:04 +0300 |
commit | f752eaadbdb147f072b9a62b88898c4adb290970 (patch) | |
tree | e1e36029f5c987dd816bd8b2aad63499770a8d17 | |
parent | c582a2dbd90638d78168150a4aea2a7cae1456e7 (diff) |
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.
-rw-r--r-- | release/scripts/startup/bl_operators/object.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/release/scripts/startup/bl_operators/object.py b/release/scripts/startup/bl_operators/object.py index 6857670c31d..0b146d689f5 100644 --- a/release/scripts/startup/bl_operators/object.py +++ b/release/scripts/startup/bl_operators/object.py @@ -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 |