[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1777] trunk/py/scripts/addons/ mesh_bsurfaces.py: fix from perfection cat (sindra1961), update for API changes.
Campbell Barton
ideasman42 at gmail.com
Mon Apr 4 11:25:01 CEST 2011
Revision: 1777
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=1777
Author: campbellbarton
Date: 2011-04-04 09:25:01 +0000 (Mon, 04 Apr 2011)
Log Message:
-----------
fix from perfection cat (sindra1961), update for API changes.
Modified Paths:
--------------
trunk/py/scripts/addons/mesh_bsurfaces.py
Modified: trunk/py/scripts/addons/mesh_bsurfaces.py
===================================================================
--- trunk/py/scripts/addons/mesh_bsurfaces.py 2011-04-04 03:13:19 UTC (rev 1776)
+++ trunk/py/scripts/addons/mesh_bsurfaces.py 2011-04-04 09:25:01 UTC (rev 1777)
@@ -825,8 +825,8 @@
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 @@
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
More information about the Bf-extensions-cvs
mailing list