[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1771] trunk/py/scripts/addons/ space_view3d_materials_utils.py: Fixed multiple copies of materials being added, this script now works for metaballs, text, curves etc.

michael williamson michaelw at cowtoolsmedia.co.uk
Sat Apr 2 21:18:43 CEST 2011


Revision: 1771
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=1771
Author:   michaelw
Date:     2011-04-02 19:18:43 +0000 (Sat, 02 Apr 2011)
Log Message:
-----------
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.

Modified Paths:
--------------
    trunk/py/scripts/addons/space_view3d_materials_utils.py

Modified: trunk/py/scripts/addons/space_view3d_materials_utils.py
===================================================================
--- trunk/py/scripts/addons/space_view3d_materials_utils.py	2011-04-02 18:50:00 UTC (rev 1770)
+++ trunk/py/scripts/addons/space_view3d_materials_utils.py	2011-04-02 19:18:43 UTC (rev 1771)
@@ -694,7 +694,7 @@
     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 @@
                 break
 
 if __name__ == "__main__":
-    register()
\ No newline at end of file
+    register()



More information about the Bf-extensions-cvs mailing list