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>2011-02-11 04:29:13 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-02-11 04:29:13 +0300
commit61d5b389e2424ff22576cc07b99260f952f6f97b (patch)
tree70707fe8017ba115d22ad723451ec9183cc0d242 /space_view3d_materials_utils.py
parentbdfca1046394902777ebe075b37597d416d634a9 (diff)
add in module register calls (first pass, batch replace, will test each addon next).
Diffstat (limited to 'space_view3d_materials_utils.py')
-rw-r--r--space_view3d_materials_utils.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/space_view3d_materials_utils.py b/space_view3d_materials_utils.py
index 7923a421..3f4d6ac5 100644
--- a/space_view3d_materials_utils.py
+++ b/space_view3d_materials_utils.py
@@ -673,11 +673,15 @@ class VIEW3D_MT_select_material(bpy.types.Menu):
def register():
+ bpy.utils.register_module(__name__)
+
km = bpy.context.window_manager.keyconfigs.default.keymaps['3D View']
kmi = km.items.new('wm.call_menu', 'Q', 'PRESS')
kmi.properties.name = "VIEW3D_MT_master_material"
def unregister():
+ bpy.utils.unregister_module(__name__)
+
km = bpy.context.window_manager.keyconfigs.default.keymaps['3D View']
for kmi in km.items:
if kmi.idname == 'wm.call_menu':