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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-05-12 11:28:05 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-05-12 11:29:06 +0300
commitf6dc0e918b2687de067f2696b070b77f1a19a00b (patch)
tree20a90b3e87b8403e53afc36cc66b8cdccc501919 /release/scripts/templates_py/ui_previews_custom_icon.py
parent34c78a659b7f157fa369c636b255326f04392ee0 (diff)
Minor tweaks to preview templates
Diffstat (limited to 'release/scripts/templates_py/ui_previews_custom_icon.py')
-rw-r--r--release/scripts/templates_py/ui_previews_custom_icon.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/templates_py/ui_previews_custom_icon.py b/release/scripts/templates_py/ui_previews_custom_icon.py
index 6eb4ad2992e..53f84b2982f 100644
--- a/release/scripts/templates_py/ui_previews_custom_icon.py
+++ b/release/scripts/templates_py/ui_previews_custom_icon.py
@@ -31,7 +31,7 @@ class PreviewsExamplePanel(bpy.types.Panel):
pcoll = preview_collections["main"]
row = layout.row()
- my_icon = pcoll.get("my_icon")
+ my_icon = pcoll["my_icon"]
row.operator("render.render", icon_value=my_icon.icon_id)
# my_icon.icon_id can be used in any UI function that accepts