[#21835] Improved Addons in User Prefs by Keith Boshoff (wahooney)
authorThomas Dinges <blender@dingto.org>
Thu, 1 Apr 2010 17:50:49 +0000 (17:50 +0000)
committerThomas Dinges <blender@dingto.org>
Thu, 1 Apr 2010 17:50:49 +0000 (17:50 +0000)
This adds a "description" field to addons (ideally a small 1 liner, with basic info)

release/scripts/ui/space_userpref.py

index ef138be7d22401193fa8caecbb885cbbcc15b918..e288b79f152c2bc403860fe1f8a4cfb46467d465 100644 (file)
@@ -1484,6 +1484,10 @@ class USERPREF_PT_addons(bpy.types.Panel):
                     split = column.row().split(percentage=0.15)
                     split.label(text='Location:')
                     split.label(text=info["location"])
+                if info["description"]:
+                    split = column.row().split(percentage=0.15)
+                    split.label(text='Description:')
+                    split.label(text=info["description"])
                 if info["url"]:
                     split = column.row().split(percentage=0.15)
                     split.label(text="Internet:")
@@ -1513,7 +1517,7 @@ class USERPREF_PT_addons(bpy.types.Panel):
 from bpy.props import *
 
 
-def addon_info_get(mod, info_basis={"name": "", "author": "", "version": "", "blender": "", "location": "", "url": "", "category": "", "expanded": False}):
+def addon_info_get(mod, info_basis={"name": "", "author": "", "version": "", "blender": "", "location": "", "description": "", "url": "", "category": "", "expanded": False}):
     addon_info = getattr(mod, "bl_addon_info", {})
 
     # avoid re-initializing