From 6cc0943c59112e4679dd2e01a8ee75669a05385e Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 30 Aug 2010 14:21:31 +0000 Subject: updates for rna changes --- mesh_surface_sketch.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mesh_surface_sketch.py') 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 -- cgit v1.2.3