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-23 15:06:26 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-08-23 15:06:26 +0400
commitc659e68695bd91edb3840dda33881dec0012ee53 (patch)
treeb029df6d471abdc995e9ec2d7870d2f3a14236c1 /mesh_surface_sketch.py
parent1cc532990fa39bd33d7b1c8c4a2ff3f72617f51e (diff)
update for changes in rna
Diffstat (limited to 'mesh_surface_sketch.py')
-rw-r--r--mesh_surface_sketch.py6
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":