diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-08-30 18:21:31 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-08-30 18:21:31 +0400 |
commit | 6cc0943c59112e4679dd2e01a8ee75669a05385e (patch) | |
tree | 830c9b25342265779ec0dfb6ebb6cc268c92f0b2 /mesh_surface_sketch.py | |
parent | cbb127b148c9eaa5fe18580338555c2987b00ecd (diff) |
updates for rna changes
Diffstat (limited to 'mesh_surface_sketch.py')
-rw-r--r-- | mesh_surface_sketch.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mesh_surface_sketch.py b/mesh_surface_sketch.py index a7ea84e9..64787ef3 100644 --- a/mesh_surface_sketch.py +++ b/mesh_surface_sketch.py @@ -790,8 +790,8 @@ def register(): bpy.types.Scene.IntProperty(attr = "SURFSK_precision", name = "Precision", description = "Precision level of the surface calculation", default = 4, min = 0, max = 100000) bpy.types.Scene.BoolProperty(attr = "SURFSK_keep_strokes", name = "Keep strokes", description = "Keeps the sketched strokes after adding the surface", default = False) - keymap_item_add_surf = bpy.data.window_managers[0].keyconfigs.active.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].keyconfigs.active.keymaps["3D View"].items.add("GPENCIL_OT_SURFSK_strokes_to_curves","C","PRESS", key_modifier="D") + keymap_item_add_surf = bpy.data.window_managers[0].keyconfigs.active.keymaps["3D View"].items.new("GPENCIL_OT_SURFSK_add_surface","E","PRESS", key_modifier="D") + keymap_item_stroke_to_curve = bpy.data.window_managers[0].keyconfigs.active.keymaps["3D View"].items.new("GPENCIL_OT_SURFSK_strokes_to_curves","C","PRESS", key_modifier="D") def unregister(): @@ -804,9 +804,9 @@ def unregister(): for kmi in km.items: if kmi.idname == 'wm.call_menu': if kmi.properties.name == "GPENCIL_OT_SURFSK_add_surface": - km.remove_item(kmi) + km.items.remove(kmi) elif kmi.properties.name == "GPENCIL_OT_SURFSK_strokes_to_curves": - km.remove_item(kmi) + km.items.remove(kmi) else: continue |