[Bf-blender-cvs] [a38205fbd80] master: Fix "Follow Active Quad" poll function

Campbell Barton noreply at git.blender.org
Thu Mar 14 01:00:52 CET 2019


Commit: a38205fbd801dabf943bea0ebe826bb46e9a0029
Author: Campbell Barton
Date:   Thu Mar 14 10:56:25 2019 +1100
Branches: master
https://developer.blender.org/rBa38205fbd801dabf943bea0ebe826bb46e9a0029

Fix "Follow Active Quad" poll function

Since this uses the active face this only makes sense in edit-mode.

===================================================================

M	release/scripts/startup/bl_operators/uvcalc_follow_active.py

===================================================================

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)



More information about the Bf-blender-cvs mailing list