[Bf-blender-cvs] [c126a51] master: Fix menu drawing printing 'unknown operator' warning when building without WITH_BULLET
Julian Eisel
noreply at git.blender.org
Mon Sep 5 00:14:12 CEST 2016
Commit: c126a5179fc24fecf3fa640f6dce7663f01dc1f4
Author: Julian Eisel
Date: Mon Sep 5 00:10:13 2016 +0200
Branches: master
https://developer.blender.org/rBc126a5179fc24fecf3fa640f6dce7663f01dc1f4
Fix menu drawing printing 'unknown operator' warning when building without WITH_BULLET
===================================================================
M release/scripts/startup/bl_ui/space_view3d.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index b9cb7f2..c1d1e22 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -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")
More information about the Bf-blender-cvs
mailing list