Minor tweaks to preview templates

This commit is contained in:
2015-05-12 18:28:05 +10:00
parent 34c78a659b
commit f6dc0e918b
2 changed files with 3 additions and 5 deletions

View File

@@ -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