WIP:Make the extrude menus for vertices,edges,faces gray and adding a red tooltip when not selected #115756

Closed
Prikshit singh wants to merge 2 commits from Prikshit-singh/blender:Fix/incorrect-extrude-menu into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 3 additions and 0 deletions
Showing only changes of commit 0c6eeaeed4 - Show all commits

View File

@ -81,6 +81,7 @@ class VIEW3D_OT_edit_mesh_extrude_move(Operator):
def poll(cls, context):
obj = context.active_object
mesh = context.object.data
cls.poll_message_set("Object has no face selected")
return (obj is not None and obj.mode == 'EDIT' and mesh.total_face_sel>=1)
@staticmethod
@ -162,6 +163,7 @@ class VIEW3D_OT_edit_mesh_extrude_shrink_fatten(Operator):
def poll(cls, context):
obj = context.active_object
mesh = context.object.data
cls.poll_message_set("Object has no face selected")
return (obj is not None and obj.mode == 'EDIT' and mesh.total_face_sel>=1)
def execute(self, context):
@ -180,6 +182,7 @@ class VIEW3D_OT_edit_mesh_extrude_manifold_normal(Operator):
def poll(cls, context):
obj = context.active_object
mesh = context.object.data
cls.poll_message_set("Object has no face selected")
return (obj is not None and obj.mode == 'EDIT' and mesh.total_face_sel>=1)
def execute(self, _context):