[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [27934] trunk/blender/release/scripts/ui/ space_userpref.py: [#21835] Improved Addons in User Prefs by Keith Boshoff (wahooney)
Thomas Dinges
dingto at gmx.de
Thu Apr 1 19:50:49 CEST 2010
Revision: 27934
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=27934
Author: dingto
Date: 2010-04-01 19:50:49 +0200 (Thu, 01 Apr 2010)
Log Message:
-----------
[#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)
Modified Paths:
--------------
trunk/blender/release/scripts/ui/space_userpref.py
Modified: trunk/blender/release/scripts/ui/space_userpref.py
===================================================================
--- trunk/blender/release/scripts/ui/space_userpref.py 2010-04-01 17:11:39 UTC (rev 27933)
+++ trunk/blender/release/scripts/ui/space_userpref.py 2010-04-01 17:50:49 UTC (rev 27934)
@@ -1484,6 +1484,10 @@
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 @@
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
More information about the Bf-blender-cvs
mailing list