[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1595] contrib/py/scripts/addons/ mesh_bridge.py: fix for changes in python api
Campbell Barton
ideasman42 at gmail.com
Mon Feb 14 13:45:14 CET 2011
Revision: 1595
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=1595
Author: campbellbarton
Date: 2011-02-14 12:45:14 +0000 (Mon, 14 Feb 2011)
Log Message:
-----------
fix for changes in python api
Modified Paths:
--------------
contrib/py/scripts/addons/mesh_bridge.py
Modified: contrib/py/scripts/addons/mesh_bridge.py
===================================================================
--- contrib/py/scripts/addons/mesh_bridge.py 2011-02-14 05:55:03 UTC (rev 1594)
+++ contrib/py/scripts/addons/mesh_bridge.py 2011-02-14 12:45:14 UTC (rev 1595)
@@ -893,7 +893,7 @@
# operator class
-class bridge(bpy.types.Operator):
+class MeshBridge(bpy.types.Operator):
bl_idname = 'mesh.bridge'
bl_label = "Bridge / Loft"
bl_description = "Bridge two, or loft several, loops of vertices"
@@ -1021,17 +1021,19 @@
# draw function for menu integration
def menu_func(self, context):
- self.layout.operator("mesh.bridge", text = "Bridge").loft = False
- self.layout.operator("mesh.bridge", text = "Loft").loft = True
+ self.layout.operator(MeshBridge.bl_idname, text="Bridge").loft = False
+ self.layout.operator(MeshBridge.bl_idname, text="Loft").loft = True
# integrate operator in menu
def register():
+ bpy.utils.register_class(MeshBridge)
bpy.types.VIEW3D_MT_edit_mesh_faces.prepend(menu_func)
# remove operator from menu
def unregister():
+ bpy.utils.unregister_class(MeshBridge)
bpy.types.VIEW3D_MT_edit_mesh_faces.remove(menu_func)
More information about the Bf-extensions-cvs
mailing list