Fix "Follow Active Quad" poll function
authorCampbell Barton <ideasman42@gmail.com>
Wed, 13 Mar 2019 23:56:25 +0000 (10:56 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 13 Mar 2019 23:56:25 +0000 (10:56 +1100)
Since this uses the active face this only makes sense in edit-mode.

release/scripts/startup/bl_operators/uvcalc_follow_active.py

index 21c89444a32ecf3633f4c5ec01f313912712be32..f20e349aeb28f54ad8e20bc0d5d2676954ddcda3 100644 (file)
@@ -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)