From 8ba6b0a47be7d01cf0b0510011a8a839f58aeb72 Mon Sep 17 00:00:00 2001 From: Thomas Dinges Date: Thu, 1 Apr 2010 17:50:49 +0000 Subject: [#21835] Improved Addons in User Prefs by Keith Boshoff (wahooney) This adds a "description" field to addons (ideally a small 1 liner, with basic info) --- release/scripts/ui/space_userpref.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/release/scripts/ui/space_userpref.py b/release/scripts/ui/space_userpref.py index ef138be7d22..e288b79f152 100644 --- a/release/scripts/ui/space_userpref.py +++ b/release/scripts/ui/space_userpref.py @@ -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 -- cgit v1.2.3