diff options
Diffstat (limited to 'mesh_surface_sketch.py')
-rw-r--r-- | mesh_surface_sketch.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mesh_surface_sketch.py b/mesh_surface_sketch.py index 5dee99da..47445743 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].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") + 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") def unregister(): @@ -800,7 +800,7 @@ def unregister(): bpy.types.Scene.RemoveProperty("SURFSK_precision") bpy.types.Scene.RemoveProperty("SURFSK_keep_strokes") - km = bpy.data.window_managers[0].active_keyconfig.keymaps["3D View"] + km = bpy.data.window_managers[0].keyconfigs.active.keymaps["3D View"] for kmi in km.items: if kmi.idname == 'wm.call_menu': if kmi.properties.name == "GPENCIL_OT_SURFSK_add_surface": |