[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [27463] trunk/blender/release/scripts/ui/ space_userpref.py: Add-Ons:
Thomas Dinges
dingto at gmx.de
Sat Mar 13 01:44:09 CET 2010
Revision: 27463
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=27463
Author: dingto
Date: 2010-03-13 01:44:09 +0100 (Sat, 13 Mar 2010)
Log Message:
-----------
Add-Ons:
*Added location value (for infos like "View3D > Properties > Measure")
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-03-13 00:17:52 UTC (rev 27462)
+++ trunk/blender/release/scripts/ui/space_userpref.py 2010-03-13 00:44:09 UTC (rev 27463)
@@ -1406,6 +1406,7 @@
mod.expanded = False
script = hasattr(mod, '__script__')
+ location = hasattr(mod, '__location__')
author = hasattr(mod, '__author__')
version = hasattr(mod, '__version__')
blender = hasattr(mod, '__blender__')
@@ -1418,6 +1419,8 @@
script = str(mod.__script__)
else:
script = module_name
+ if location:
+ location = str(mod.__location__)
if version:
version = str(mod.__version__)
if author:
@@ -1473,7 +1476,7 @@
emails.append([mail, mail_desc])
if bpydoc:
bpydoc = str(mod.__bpydoc__).splitlines()
- return module_name, script, author, version, blender, category, url, email, bpydoc, links, emails
+ return module_name, script, author, version, blender, location, category, url, email, bpydoc, links, emails
def draw(self, context):
layout = self.layout
@@ -1504,7 +1507,7 @@
filter = context.scene.addon_filter
search = context.scene.addon_search
for mod in self._addon_list():
- module_name, script, author, version, blender, category, url, email, bpydoc, links, emails = \
+ module_name, script, author, version, blender, location, category, url, email, bpydoc, links, emails = \
self._attributes(mod)
# check if add-on should be visible with current filters
@@ -1548,6 +1551,10 @@
split = column.row().split(percentage=0.15)
split.label(text='Version:')
split.label(text=version)
+ if location:
+ split = column.row().split(percentage=0.15)
+ split.label(text='Location:')
+ split.label(text=location)
if url:
split = column.row().split(percentage=0.15)
split.label(text="Links:")
More information about the Bf-blender-cvs
mailing list