diff options
author | Michael Williamson <michaelw@cowtoolsmedia.co.uk> | 2011-04-02 23:18:43 +0400 |
---|---|---|
committer | Michael Williamson <michaelw@cowtoolsmedia.co.uk> | 2011-04-02 23:18:43 +0400 |
commit | 60a76bcb3116c16783a0695a9ba373649c9e1290 (patch) | |
tree | 52b43cfbc88e7a1f20fb337bde5f3e9837003e4d /space_view3d_materials_utils.py | |
parent | 9325505e90b3d0f0ea7e99c91aec32273efa594f (diff) |
Fixed multiple copies of materials being added, this script now works for metaballs, text, curves etc. Select by material only shows used materials in teh pop up now too.
Diffstat (limited to 'space_view3d_materials_utils.py')
-rw-r--r-- | space_view3d_materials_utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/space_view3d_materials_utils.py b/space_view3d_materials_utils.py index 024cd796..a08cf53d 100644 --- a/space_view3d_materials_utils.py +++ b/space_view3d_materials_utils.py @@ -694,7 +694,7 @@ def register(): if km is None: km = kc.keymaps.new(name="3D View") - kmi = km.items.new('wm.call_menu', 'Q', 'PRESS') + kmi = km.keymap_items.new('wm.call_menu', 'Q', 'PRESS') kmi.properties.name = "VIEW3D_MT_master_material" def unregister(): @@ -709,4 +709,4 @@ def unregister(): break if __name__ == "__main__": - register()
\ No newline at end of file + register() |