Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Nell <codemanx@gmx.de>2013-09-29 18:04:11 +0400
committerSebastian Nell <codemanx@gmx.de>2013-09-29 18:04:11 +0400
commit4486f3db1f8f9d0f301521a092cf9e2312fda9e2 (patch)
tree6c67483879640c984cc9d9efa821f3997bcf1730 /development_icon_get.py
parentae93240f0b49d3b3932b9f81688ff4483d30ad6e (diff)
Addon: Development Icon was showing labels but shouldn't (icon_only=True seems broken?!). Manually setting text="", although prop default was also "".
Diffstat (limited to 'development_icon_get.py')
-rw-r--r--development_icon_get.py29
1 files changed, 16 insertions, 13 deletions
diff --git a/development_icon_get.py b/development_icon_get.py
index b786dea0..927c218b 100644
--- a/development_icon_get.py
+++ b/development_icon_get.py
@@ -22,7 +22,7 @@
bl_info = {
'name': 'Icons',
'author': 'Crouch, N.tox, PKHG, Campbell Barton, Dany Lebel',
- 'version': (1, 5, 1),
+ 'version': (1, 5, 2),
"blender": (2, 57, 0),
'location': 'Text Editor > Properties or '\
'Console > Console Menu',
@@ -98,10 +98,10 @@ class OBJECT_PT_icons(bpy.types.Panel):
# expand button
toprow = box.row()
toprow.prop(props, "expand", icon="TRIA_RIGHT", icon_only=True,
- emboss=False)
+ text="", emboss=False) # icon_only broken?
# search buttons
row = toprow.row(align=True)
- row.prop(props, "search", icon="VIEWZOOM")
+ row.prop(props, "search", icon="VIEWZOOM", text="")
# scroll button
row = toprow.row()
row.active = props.bl_rna.scroll[1]['max'] > 1
@@ -126,10 +126,10 @@ class OBJECT_PT_icons(bpy.types.Panel):
# expand button
toprow = box.row()
toprow.prop(props, "expand", icon="TRIA_DOWN", icon_only=True,
- emboss=False)
+ text="", emboss=False)
# search buttons
row = toprow.row(align=True)
- row.prop(props, "search", icon="VIEWZOOM")
+ row.prop(props, "search", icon="VIEWZOOM", text="")
# scroll button
row = toprow.row()
row.active = False
@@ -208,14 +208,17 @@ def register():
bpy.context.scene.icon_props
"""
console = bpy.props.BoolProperty(name='Show System Icons',
- description='Display the Icons in the console header', default=False)
- expand = bpy.props.BoolProperty(default=False,
- description="Expand, to display all icons at once")
- search = bpy.props.StringProperty(default="",
- description="Search for icons by name")
- scroll = bpy.props.IntProperty(default=1, min=1,
- max=max(1, icons_total - icons_per_row + 1),
- description="Drag to scroll icons")
+ description='Display the Icons in the console header',
+ default=False)
+ expand = bpy.props.BoolProperty(name="Expand",
+ description="Expand, to display all icons at once",
+ default=False)
+ search = bpy.props.StringProperty(name="Search",
+ description="Search for icons by name",
+ default="")
+ scroll = bpy.props.IntProperty(name="Scroll",
+ description="Drag to scroll icons",
+ default=1, min=1, max=max(1, icons_total - icons_per_row + 1))
bpy.utils.register_module(__name__)
bpy.types.Scene.icon_props = bpy.props.PointerProperty(type=IconProps)