diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-05-12 11:28:05 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-05-12 11:29:06 +0300 |
commit | f6dc0e918b2687de067f2696b070b77f1a19a00b (patch) | |
tree | 20a90b3e87b8403e53afc36cc66b8cdccc501919 /release/scripts/templates_py/ui_previews_dynamic_enum.py | |
parent | 34c78a659b7f157fa369c636b255326f04392ee0 (diff) |
Minor tweaks to preview templates
Diffstat (limited to 'release/scripts/templates_py/ui_previews_dynamic_enum.py')
-rw-r--r-- | release/scripts/templates_py/ui_previews_dynamic_enum.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/release/scripts/templates_py/ui_previews_dynamic_enum.py b/release/scripts/templates_py/ui_previews_dynamic_enum.py index 5dda6967a3c..5269f7fa40b 100644 --- a/release/scripts/templates_py/ui_previews_dynamic_enum.py +++ b/release/scripts/templates_py/ui_previews_dynamic_enum.py @@ -14,7 +14,7 @@ # For custom icons, see the template "ui_previews_custom_icon.py". # # For distributable scripts, it is recommended to place the icons inside the -# addon directory and access it relative to the py script file for portability: +# script directory and access it relative to the py script file for portability: # # os.path.join(os.path.dirname(__file__), "images") @@ -47,11 +47,9 @@ def enum_previews_from_directory_items(self, context): for i, name in enumerate(image_paths): # generates a thumbnail preview for a file. - # Also works with previews for 'MOVIE', 'BLEND' and 'FONT' filepath = os.path.join(directory, name) thumb = pcoll.load(filepath, filepath, 'IMAGE') - # enum item: (identifier, name, description, icon, number) - enum_items.append((name, name, name, thumb.icon_id, i)) + enum_items.append((name, name, "", thumb.icon_id, i)) pcoll.my_previews = enum_items pcoll.my_previews_dir = directory |