diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-08-02 15:53:48 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-08-02 15:53:48 +0400 |
commit | 3148c0f203ba23bead40e4e037bcc9a1eb27278b (patch) | |
tree | 1e91d053095e10a4b7afa1c392bb7525d3967cbe /mesh_surface_sketch.py | |
parent | d566152b0372d1d29578c3353f6a4d5ff3af4d63 (diff) |
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
Diffstat (limited to 'mesh_surface_sketch.py')
-rw-r--r-- | mesh_surface_sketch.py | 11 |
1 files changed, 1 insertions, 10 deletions
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': |