Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2022-05-17 12:00:04 +0300
committerSybren A. Stüvel <sybren@blender.org>2022-05-17 12:00:04 +0300
commitf752eaadbdb147f072b9a62b88898c4adb290970 (patch)
treee1e36029f5c987dd816bd8b2aad63499770a8d17 /release/scripts/startup/bl_operators
parentc582a2dbd90638d78168150a4aea2a7cae1456e7 (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.
Diffstat (limited to 'release/scripts/startup/bl_operators')
-rw-r--r--release/scripts/startup/bl_operators/object.py4
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