diff options
author | Thomas Dinges <blender@dingto.org> | 2010-04-01 21:50:49 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2010-04-01 21:50:49 +0400 |
commit | 8ba6b0a47be7d01cf0b0510011a8a839f58aeb72 (patch) | |
tree | 698a090d41715236defe3783a2b8a6ae8a52e6ab | |
parent | 68fb0d98d95ac73eb22b9ca0702131a058b3a632 (diff) |
[#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)
-rw-r--r-- | release/scripts/ui/space_userpref.py | 6 |
1 files changed, 5 insertions, 1 deletions
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 |