Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-08-02 15:53:48 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-08-02 15:53:48 +0400
commit3148c0f203ba23bead40e4e037bcc9a1eb27278b (patch)
tree1e91d053095e10a4b7afa1c392bb7525d3967cbe /mesh_surface_sketch.py
parentd566152b0372d1d29578c3353f6a4d5ff3af4d63 (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.py11
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':