diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-04-04 13:25:01 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-04-04 13:25:01 +0400 |
commit | 62240714468bd0e30d39b6dcdc3770fd2190049b (patch) | |
tree | 234b23aeefa36a8b959e3a65256449967676a721 /mesh_bsurfaces.py | |
parent | c4fb4a11423f054f53186ed66a111eff2e70521d (diff) |
fix from perfection cat (sindra1961), update for API changes.
Diffstat (limited to 'mesh_bsurfaces.py')
-rw-r--r-- | mesh_bsurfaces.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mesh_bsurfaces.py b/mesh_bsurfaces.py index 538cfbd4..75f9eb03 100644 --- a/mesh_bsurfaces.py +++ b/mesh_bsurfaces.py @@ -825,8 +825,8 @@ def register(): bpy.types.Scene.SURFSK_precision = bpy.props.IntProperty(name="Precision", description="Precision level of the surface calculation", default=4, min=0, max=100000) bpy.types.Scene.SURFSK_keep_strokes = bpy.props.BoolProperty(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.new("gpencil.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.surfsk_strokes_to_curves","C","PRESS", key_modifier="D") + keymap_item_add_surf = bpy.data.window_managers[0].keyconfigs.active.keymaps["3D View"].keymap_items.new("gpencil.surfsk_add_surface","E","PRESS", key_modifier="D") + keymap_item_stroke_to_curve = bpy.data.window_managers[0].keyconfigs.active.keymaps["3D View"].keymap_items.new("gpencil.surfsk_strokes_to_curves","C","PRESS", key_modifier="D") def unregister(): @@ -840,12 +840,12 @@ def unregister(): del bpy.types.Scene.SURFSK_keep_strokes km = bpy.data.window_managers[0].keyconfigs.active.keymaps["3D View"] - for kmi in km.items: + for kmi in km.keymap_items: if kmi.idname == 'wm.call_menu': if kmi.properties.name == "GPENCIL_OT_SURFSK_add_surface": - km.items.remove(kmi) + km.keymap_items.remove(kmi) elif kmi.properties.name == "GPENCIL_OT_SURFSK_strokes_to_curves": - km.items.remove(kmi) + km.keymap_items.remove(kmi) else: continue |