Fix menu drawing printing 'unknown operator' warning when building without WITH_BULLET

This commit is contained in:
Julian Eisel 2016-09-05 00:10:13 +02:00
parent e76e8fcdcc
commit c126a5179f
1 changed files with 4 additions and 1 deletions

View File

@ -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")