From 3148c0f203ba23bead40e4e037bcc9a1eb27278b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 2 Aug 2010 11:53:48 +0000 Subject: update addons to work with new register/unregister method, These scritps still need changes related to parent classes - mesh_surface_sketch.py - render_renderfarmfi.py - space_view3d_align_tools.py - object_cloud_gen.py --- mesh_surface_sketch.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'mesh_surface_sketch.py') diff --git a/mesh_surface_sketch.py b/mesh_surface_sketch.py index 37bc2bc7..adaf3cf2 100644 --- a/mesh_surface_sketch.py +++ b/mesh_surface_sketch.py @@ -796,21 +796,12 @@ class GPENCIL_OT_SURFSK_strokes_to_curves(bpy.types.Operator): return {"FINISHED"} - - - def register(): - bpy.types.register(GPENCIL_OT_SURFSK_add_surface) - bpy.types.register(GPENCIL_OT_SURFSK_strokes_to_curves) - bpy.types.register(VIEW3D_PT_tools_SURF_SKETCH) - keymap_item_add_surf = bpy.data.window_managers[0].active_keyconfig.keymaps["3D View"].items.add("GPENCIL_OT_SURFSK_add_surface","E","PRESS", key_modifier="D") keymap_item_stroke_to_curve = bpy.data.window_managers[0].active_keyconfig.keymaps["3D View"].items.add("GPENCIL_OT_SURFSK_strokes_to_curves","C","PRESS", key_modifier="D") + def unregister(): - bpy.types.unregister(GPENCIL_OT_SURFSK_add_surface) - bpy.types.unregister(GPENCIL_OT_SURFSK_strokes_to_curves) - bpy.types.unregister(VIEW3D_PT_tools_SURF_SKETCH) km = bpy.data.window_managers[0].active_keyconfig.keymaps["3D View"] for kmi in km.items: if kmi.idname == 'wm.call_menu': -- cgit v1.2.3