Fix T37692: Follow active quads failed on unselected-active-face

This commit is contained in:
Campbell Barton 2013-12-13 05:05:21 +11:00
parent c701082a92
commit 700e799ef5
Notes: blender-bot 2023-02-14 11:31:08 +01:00
Referenced by issue #37692, UV Unwrap Follow Active Quads Fails to do anything sometimes
1 changed files with 3 additions and 0 deletions

View File

@ -41,6 +41,9 @@ def extend(obj, operator, EXTEND_MODE):
if f_act is None:
operator.report({'ERROR'}, "No active face")
return
if not f_act.select:
operator.report({'ERROR'}, "No active face is not selected")
return
elif len(f_act.verts) != 4:
operator.report({'ERROR'}, "Active face must be a quad")
return