forked from bartvdbraak/blender
Fix menu drawing printing 'unknown operator' warning when building without WITH_BULLET
This commit is contained in:
parent
e76e8fcdcc
commit
c126a5179f
@ -2427,6 +2427,8 @@ class VIEW3D_MT_edit_mesh_vertices(Menu):
|
||||
layout = self.layout
|
||||
layout.operator_context = 'INVOKE_REGION_WIN'
|
||||
|
||||
with_bullet = bpy.app.build_options.bullet
|
||||
|
||||
layout.operator("mesh.merge")
|
||||
layout.operator("mesh.rip_move")
|
||||
layout.operator("mesh.rip_move_fill")
|
||||
@ -2447,7 +2449,8 @@ class VIEW3D_MT_edit_mesh_vertices(Menu):
|
||||
layout.separator()
|
||||
|
||||
layout.operator("mesh.bevel").vertex_only = True
|
||||
layout.operator("mesh.convex_hull")
|
||||
if with_bullet:
|
||||
layout.operator("mesh.convex_hull")
|
||||
layout.operator("mesh.vertices_smooth")
|
||||
layout.operator("mesh.remove_doubles")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user