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:
authorCampbell Barton <ideasman42@gmail.com>2019-03-14 02:56:25 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-03-14 02:56:25 +0300
commita38205fbd801dabf943bea0ebe826bb46e9a0029 (patch)
tree3fcf2785ccd164c22662afc19c03d24e186c5237 /release/scripts/startup/bl_operators
parente63642f9cd57d12b0d4b4036e477d61012714181 (diff)
Fix "Follow Active Quad" poll function
Since this uses the active face this only makes sense in edit-mode.
Diffstat (limited to 'release/scripts/startup/bl_operators')
-rw-r--r--release/scripts/startup/bl_operators/uvcalc_follow_active.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_operators/uvcalc_follow_active.py b/release/scripts/startup/bl_operators/uvcalc_follow_active.py
index 21c89444a32..f20e349aeb2 100644
--- a/release/scripts/startup/bl_operators/uvcalc_follow_active.py
+++ b/release/scripts/startup/bl_operators/uvcalc_follow_active.py
@@ -263,8 +263,7 @@ class FollowActiveQuads(Operator):
@classmethod
def poll(cls, context):
- obj = context.active_object
- return (obj is not None and obj.type == 'MESH')
+ return context.mode == 'EDIT_MESH'
def execute(self, context):
main(context, self)